detailed error reporting

Please add a more detailed error reporting.