error.message function

Get the error message