return undef if error_string is NULL