Permalink
Browse files

Use UsageError for non-local exit + error message

  • Loading branch information...
1 parent ba5029b commit 96c3c209343bcd070fb3cf58858858a5973d213e @tkf committed Mar 24, 2013
Showing with 1 addition and 2 deletions.
  1. +1 −2 IPython/core/magics/execution.py
@@ -647,8 +647,7 @@ def _run_with_debugger(self, code, code_ns, break_point, filename):
"after trying up to line: %s.\n"
"Please set a valid breakpoint manually "
"with the -b option." % bp)
- error(msg)
- return
+ raise UsageError(msg)
# if we find a good linenumber, set the breakpoint
deb.do_break('%s:%s' % (bp_file, bp_line))

0 comments on commit 96c3c20

Please sign in to comment.