Fix errors.on readme example to hash syntax

Just a minor readme correction.