display error message in error JSON
Show error message in console