improve Error log