A few additions for pretty printing things and getting better error messages

This commit is contained in:
Ross Boucher committed 2009-12-11 10:58:07 -08:00
1 parent d14e077511
commit a98de54db4
3 files changed
+23 -3

No files matched your search

+2 -2
View File
@@ -607,10 +607,10 @@ function objj_decompile(aString, bundle)
var stream = new objj_markedStream(aString);
if (stream.magicNumber() != STATIC_MAGIC_NUMBER)
objj_exception_throw(new objj_exception(OBJJUnrecognizedFormatException, "*** Could not recognize executable code format."));
objj_exception_throw(new objj_exception(OBJJUnrecognizedFormatException, "*** Could not recognize executable code format in bundle: "+bundle));
if (stream.version() != 1.0)
objj_exception_throw(new objj_exception(OBJJUnrecognizedFormatException, "*** Could not recognize executable code format."));
objj_exception_throw(new objj_exception(OBJJUnrecognizedFormatException, "*** Could not recognize executable code format in bundle: "+bundle));
var file = NULL,
files = [],