voxpupuli / modulesync

Synchronize common files across your Git repositories.
Apache License 2.0
104 stars 48 forks source link

Rework exception handling #217

Closed neomilium closed 3 years ago

neomilium commented 3 years ago

This commit gives the user a better output message:

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.

neomilium commented 3 years ago

@ekohl Big green button?