Priority error message fix. Using the fix @neezer put into issue #505 verbatim, since
he didn't have time to submit a PR.

This will grab the highest priority error message and only display that one.