Improve the error info output