-
Notifications
You must be signed in to change notification settings - Fork 35
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
Vague and unhelpful error message if log cannot be created #97
Comments
The problem is that Airbrussh is trying to create its default log file at You can solve this by changing the log file location to something else, or disable it entirely, using this option: set :format_options, log_file: "a/different/path.log"
# or disable it
set :format_options, log_file: nil That aside, I agree that the error behavior in this scenario could be improved. Should Airbrussh print an error that it cannot create the log file and then exit? Or print a warning and continue without writing a log? What is your expectation? |
indeed, I figured that much out, but the error message wasn't very clear.
Me personally, I'd expect it to "print an error that it cannot create the log file and then exit", maybe telling the user how to fix it (something like "you can change the log file via the :format_options option, check the help to know how") |
Good suggestion. Thanks for the bug report! 🙇 |
I will accept a PR to improve the error message if anyone is interested! 😃 |
Running Capistrano 3.6.1 and airbrussh 1.1.1, if the project has a
log
file, trying to runcap
fails with:or with
--trace
:The text was updated successfully, but these errors were encountered: