-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit gives the user a better output message: - it uses the exception message if available or fallback on the "Error during update" message - it prefixes the message by the current module name This commits introduces a ModuleSync::Error that will be used to raise exceptions, with a message outputed on stderr, but without a full backtrace, useless for user. It keeps the current behavior when error (ie. StandardError) comes from templates (ie. ERB) rendering as user may need to see why the rendering failed. Git::GitExecuteError backtraces are now hidden too: user needs to understand what happends, with the error message, but not where error occured.
- Loading branch information
Showing
2 changed files
with
16 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters