make createError behave even nicer