Use a map of errors