update error middleware line-breaks