Add debugging info to exception.

This commit is contained in:
Brian Pellin
2016-10-31 20:52:20 -05:00
parent 236b26b9bd
commit b93dd9a699

View File

@@ -723,8 +723,12 @@ public class ImporterV4 extends Importer {
return KdbContext.RootDeletedObjects;
} else {
assert(false);
throw new RuntimeException("Invalid end element");
String contextName = "";
if (ctx != null) {
contextName = ctx.name();
}
throw new RuntimeException("Invalid end element: Context " + contextName + "End element: " + name);
}
}