It creates "error string".   For me, it is not very unnatural to use such an expression.
https://www.google.com/search?q=create_error_string+OR+create_error_message