Fixed missing repr() in error output