Skip to content

[5.4] Added exception error when bootstrap/cache directory is not writable - #18188

Merged
taylorotwell merged 1 commit into
laravel:5.4from
macdabby:bootstrap_cache_exception
Mar 7, 2017
Merged

[5.4] Added exception error when bootstrap/cache directory is not writable#18188
taylorotwell merged 1 commit into
laravel:5.4from
macdabby:bootstrap_cache_exception

Conversation

@macdabby

@macdabby macdabby commented Mar 2, 2017

Copy link
Copy Markdown
Contributor

This is to fix an annoying issue related to: #17969 where a generic error is thrown if the bootstrap/cache directory is not present or writable.

@macdabby
macdabby force-pushed the bootstrap_cache_exception branch 2 times, most recently from e9238a2 to 128ab51 Compare March 2, 2017 15:54
@GrahamCampbell GrahamCampbell changed the title Added exception error when bootstrap/cache directory is not writable [5.4] Added exception error when bootstrap/cache directory is not writable Mar 2, 2017
@GrahamCampbell

Copy link
Copy Markdown
Collaborator

Doesn't have to be writable tbh. It is possible to use laravel without this requirement.

@macdabby

macdabby commented Mar 2, 2017

Copy link
Copy Markdown
Contributor Author

I believe you're right in some cases, but by the time it reaches this point, it is preparing to write and will fail if it can't.

@tomschlick

Copy link
Copy Markdown
Contributor

This probably shouldn't emit a FileNotFoundException but instead something like PathNotWriteableException.

I realize it includes a message about what's really happening but FileNotFound is very specific and this isn't dealing with a file not able to be found.

@macdabby

macdabby commented Mar 6, 2017

Copy link
Copy Markdown
Contributor Author

Is there such an exception?

@GrahamCampbell

Copy link
Copy Markdown
Collaborator

Is there such an exception?

There doesn't need to be. We just make our own class. :P

@taylorotwell
taylorotwell merged commit 128ab51 into laravel:5.4 Mar 7, 2017
*
* @param array $manifest
* @return array
* @throws FileNotFoundException

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please follow our code style here. See the other phpdoc for reference. ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants