better display of error