driver_test: better error report