Use the err.msg rather than the err object