Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Mar 7, 2017

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
Member

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
Member

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
@@ -180,9 +181,14 @@ protected function freshManifest(array $providers)
*
* @param array $manifest
* @return array
* @throws FileNotFoundException
Copy link
Member

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