Convert sm_msg() with an error: prefix into sm_error()