change errors hash to yaml