-
Notifications
You must be signed in to change notification settings - Fork 23
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
kintsugi: Handle expected errors gracefully. #31
kintsugi: Handle expected errors gracefully. #31
Conversation
98329f8
to
fdf500a
Compare
lib/kintsugi/error.rb
Outdated
# frozen_string_literal: true | ||
|
||
module Kintsugi | ||
class EnvironmentError < RuntimeError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed EnvironmentError
class EnvironmentError < RuntimeError | ||
end | ||
|
||
class MergeError < RuntimeError |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document
fdf500a
to
b949db5
Compare
@ashdnazg squashed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F&S&M
lib/kintsugi.rb
Outdated
# @raise [RuntimeError] | ||
# If no rebase, cherry-pick, or merge is in progress, or the project file couldn't be | ||
# opened, or there was an error applying the change to the project. | ||
# @raise [EnvironmentError] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
# @raise [EnvironmentError] | |
# @raise [ArgumentError] |
Instead of printing the stack trace, just print the errors.
b949db5
to
33023b8
Compare
Instead of printing the stack trace, just print the errors.