That is what I think we want to pass to log.exception, yes.  The stuff that is added to msg is what is displayed to the user.  They know what student and problem were input, it's in front of them on the screen -- what they don't know is why something failed.  Perhaps they don't need to, but I expect it would be mildly helpful in these unlikely cases.  So that is why this was adding the format(err) output to the msg.  So don't use current_msg, and instead create different output for msg than for log.exception.