Browse files

Closes #369. Throw the correct exception from invocation

  • Loading branch information...
1 parent 54f5d23 commit 8fd53affe1139364c4489dac4dcb119c3e6dc1de @dpp dpp committed Feb 25, 2010
View
1 ...-persistence/lift-mapper/src/main/scala/net/liftweb/mapper/LoggingStatementWrappers.scala
@@ -329,6 +329,7 @@ object DBLog {
m.invoke(underlying, args : _*)
} catch {
+ case ite: java.lang.reflect.InvocationTargetException => throw ite.getCause
case nsme : NoSuchMethodException => Log.fatal("Could not locate method %s for %s : %s".format(method.getName, underlyingClassname, nsme.getMessage))
throw nsme
}

0 comments on commit 8fd53af

Please sign in to comment.