Skip to content

Commit

Permalink
log original exception when fallback update fails
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Apr 9, 2008
1 parent b014e61 commit d4e1662
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -222,7 +222,7 @@ protected int insert(String[] tokens, BinaryEncoding encoding) {
rows = context.getTableTemplate().update(columnValues, keyValues, encoding);
if (rows == 0) {
throw new RuntimeException("Unable to update " + context.getTableName() + ": "
+ ArrayUtils.toString(tokens));
+ ArrayUtils.toString(tokens), e);
}
} else {
// TODO: log the PK information as an ERROR level.
Expand Down

0 comments on commit d4e1662

Please sign in to comment.