Fixes error message recognition

- Error messages should now be recognised properly by scanning the
complete line for the keyword “error”.