Output errors properly