debug: error reporting