The following code is in preppy to give syntax errors in the templates:

    import traceback
    tb = traceback.format_tb(tb)
    tb = string.join(tb, "\n")
    # how to get the line in the script for the error?
    raise ValueError, "bad script code for %s\n%s\n\n%s\n%s\n%s" % (
        compilemode, ddblock, t, v, tb)

ironpython does not have the module traceback. Is there some other way to do
this?

Thanks,

Vineet
    

_______________________________________________
Users mailing list
[email protected]
http://lists.ironpython.com/listinfo.cgi/users-ironpython.com

Reply via email to