Don't bother with a backtrace when we produce certain fatal errors.

We'll introduce a new "Fatal" exception for this purpose, and throw it when
we just want to print a user message and abort immediately.
This commit is contained in:
Avery Pennarun
2010-05-02 02:23:42 -04:00
parent 2dd328ada4
commit 81c89ce9be
5 changed files with 54 additions and 36 deletions

View File

@ -15,3 +15,7 @@ def debug1(s):
def debug2(s):
if verbose >= 2:
log(s)
class Fatal(Exception):
pass