fix error mappings to avoid unhashable errors
fix error mappings to avoid unhashable errors

using a switch statement instead of a hash we can avoid the
unhashable errors we have seen on several error messages.

fixes issues 99 and 102

miquella/vaulted