Fix errors.on readme example to hash syntax