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.
Merge pull request #510 from 4kategreen/master

Priority error message fix: issue #505