Permalink
Browse files

Make failure to instantiate a requested extension function more obvious

  • Loading branch information...
ndw committed Aug 15, 2014
1 parent bba94f7 commit d4b348b0cc68558d154ee660c61ece81d33eec0f
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/com/xmlcalabash/core/XProcRuntime.java
@@ -243,11 +243,11 @@ public XProcRuntime(XProcConfiguration config) {
else if (def instanceof ExtensionFunction)
processor.registerExtensionFunction((ExtensionFunction) def);
else
finer(null, null, "Failed to instantiate extension function " + className + " because that class implements neither ExtensionFunction nor ExtensionFunctionDefinition.");
info(null, null, "Failed to instantiate extension function " + className + " because that class implements neither ExtensionFunction nor ExtensionFunctionDefinition.");
} catch (NoClassDefFoundError ncdfe) {
finer(null, null, "Failed to instantiate extension function: " + className);
info(null, null, "Failed to instantiate extension function: " + className);
} catch (Exception e) {
finer(null, null, "Failed to instantiate extension function: " + className);
info(null, null, "Failed to instantiate extension function: " + className);
}
}

0 comments on commit d4b348b

Please sign in to comment.