Changeset 1391 for pykota

Show
Ignore:
Timestamp:
03/05/04 13:46:08 (21 years ago)
Author:
jalet
Message:

Improve tracebacks

Location:
pykota/trunk/bin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/cupspykota

    r1390 r1391  
    2424# 
    2525# $Log$ 
     26# Revision 1.33  2004/03/05 12:46:07  jalet 
     27# Improve tracebacks 
     28# 
    2629# Revision 1.32  2004/03/05 12:31:35  jalet 
    2730# Now should output full traceback when crashing 
     
    489492        except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError, PyKotaRequesterError, AttributeError, KeyError, IndexError, ValueError, TypeError, IOError), msg : 
    490493            import traceback 
    491             sys.stderr.write("ERROR : cupspykota backend failed (%s) => %s\n" % (msg, traceback.format_stack())) 
     494            sys.stderr.write("ERROR : cupspykota backend failed (%s)\n%s" % (msg, "ERROR : ".join(traceback.format_stack()))) 
    492495            sys.stderr.flush() 
    493496            retcode = 1 
  • pykota/trunk/bin/pykota

    r1390 r1391  
    2424# 
    2525# $Log$ 
     26# Revision 1.56  2004/03/05 12:46:08  jalet 
     27# Improve tracebacks 
     28# 
    2629# Revision 1.55  2004/03/05 12:31:35  jalet 
    2730# Now should output full traceback when crashing 
     
    355358    except (PyKotaToolError, PyKotaConfigError, PyKotaStorageError, PyKotaAccounterError, PyKotaRequesterError, AttributeError, KeyError, IndexError, ValueError, TypeError, IOError), msg : 
    356359        import traceback 
    357         sys.stderr.write("ERROR : PyKota filter failed (%s) => %s\n" % (msg, traceback.format_stack())) 
     360        sys.stderr.write("ERROR : PyKota filter failed (%s)\n%s" % (msg, "ERROR : ".join(traceback.format_stack()))) 
    358361        sys.stderr.flush() 
    359362        try :