Turn errors to hash before using hash method on said errors