Implemented graceful handling of errrors in priority lists.

This change introduces custom error messages that actually mention the illegal Lua code when a priority list condition can't be parsed. This solved #37.