Skip to content

Conversation

@macdabby
Copy link
Contributor

@macdabby macdabby commented Mar 2, 2017

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
Collaborator

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

@macdabby
Copy link
Contributor Author

macdabby commented Mar 2, 2017

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
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
Copy link
Contributor Author

macdabby commented Mar 6, 2017

Is there such an exception?

@GrahamCampbell
Copy link
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
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