mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Add debugging info to exception.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user