Skip to content
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

Displays a message without a stack trace for ambiguous commands #357

Merged
merged 1 commit into from
Jul 30, 2013

Conversation

ssrihari
Copy link

@coveralls
Copy link

Coverage Status

Coverage remained the same when pulling a651381 on ssrihari:master into 6ae2fa1 on erikhuda:master.

@@ -13,6 +13,10 @@ class UndefinedCommandError < Error
end
UndefinedTaskError = UndefinedCommandError

class AmbiguousCommandError < Error
end
AmbiguousTaskError = AmbiguousCommandError
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the AmbiguousCommandError class? Generally I try to stay away from code that isn't actually used.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you're probably just mirroring Undefined(Command|Task)Error. Fair enough.

eventualbuddha added a commit that referenced this pull request Jul 30, 2013
Displays a message without a stack trace for ambiguous commands
@eventualbuddha eventualbuddha merged commit 2b347d4 into rails:master Jul 30, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Print friendly error on ambiguous command
3 participants