Fixes #1213. Won't display an error message if there's no error_code

@rafatower CR this, please