Skip to content
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.

Commit

Permalink
Add meaningful trace to createDummyInstance error handling
Browse files Browse the repository at this point in the history
Closes #30
  • Loading branch information
tschneidereit committed Jan 9, 2011
1 parent 42d9612 commit f30555d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,11 @@ package org.swiftsuspenders.injectionpoints
}
catch (error : Error)
{
trace(error);
trace('Exception caught while trying to create dummy instance for constructor ' +
'injection. It\'s almost certainly ok to ignore this exception, but you ' +
'might want to restructure your constructor to prevent errors from ' +
'happening. See the SwiftSuspenders documentation for more details. ' +
'The caught exception was:\n' + error);
}
constructorNode.setChildren(describeType(clazz).factory.constructor[0].children());
}
Expand Down

0 comments on commit f30555d

Please sign in to comment.