Improving the error reports