Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Unified Diff: tools/cr/cr/commands/command.py

Issue 83703002: [cr tool] Changing exit to raise for not overridden test. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Quote change Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/cr/cr/commands/command.py
diff --git a/tools/cr/cr/commands/command.py b/tools/cr/cr/commands/command.py
index a648a8c492afaa3b98b7400704ad65630d10e5c4..d2e65a2be39c7e4d845c6cd130b6f9cd430be09c 100644
--- a/tools/cr/cr/commands/command.py
+++ b/tools/cr/cr/commands/command.py
@@ -100,6 +100,5 @@ class Command(cr.Plugin, cr.Plugin.Type):
context: The context to run the command in.
"""
_ = context
- print 'Command "{0}" not implemented'.format(self.name)
- exit(1)
+ raise NotImplementedError('Must be overridden.')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698