Skip to content

Commit

Permalink
Better error message for split value conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
jralls committed Mar 29, 2014
1 parent 4e5e062 commit 9786845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine/Split.c
Expand Up @@ -1087,7 +1087,7 @@ xaccSplitSetValue (Split *s, gnc_numeric amt)
GNC_HOW_RND_ROUND_HALF_UP);
if (gnc_numeric_check(new_val) == GNC_ERROR_OK)
s->value = new_val;
else PERR("numeric error in converting the split value's denominator");
else PERR("numeric error %s in converting the split value's denominator with amount %s and denom %d", gnc_numeric_errorCode_to_string(gnc_numeric_check(new_val)), gnc_numeric_to_string(amt), get_currency_denom(s));

SET_GAINS_VDIRTY(s);
mark_split (s);
Expand Down

0 comments on commit 9786845

Please sign in to comment.