yii2-db-manager icon indicating copy to clipboard operation
yii2-db-manager copied to clipboard

Unhelpful error message: Path is not writable! Check chmod!

Open Download opened this issue 3 years ago • 2 comments

When trying to get the help for the yii2 console commands on a server, I ran this:

$ yii help

and was greeted with this error message:

Error: Path is not writable! Check chmod!

This message tells me some path is not writeable, but critically, it does not actually tell me which path it tried to write, making solving the issue harder than it needs to be.

I traced it down to this file: https://github.com/Beaten-Sect0r/yii2-db-manager/blob/master/src/Module.php#L142

You have the path available here, so please mention it in the error message.

Download avatar May 02 '22 14:05 Download

Will prepare a PR for this ❤️

Download avatar May 02 '22 14:05 Download

I see you closed the PR without merging it. Care to comment on why? I thought it was a small but useful improvement....

Download avatar Aug 09 '22 14:08 Download