Skip to content

Commit f6f9e61

Browse files
committed
slightly improve error message
1 parent 94ec110 commit f6f9e61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ubxtool.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,10 @@ int initFD(const char* fname, bool doRTSCTS)
411411
int fd;
412412
if (doDEBUG) { cerr<<humanTimeNow()<<" initFD()"<<endl; }
413413
if (!isPresent(fname)) {
414+
414415
if (doDEBUG) { cerr<<humanTimeNow()<<" initFD - "<<fname<<" - not present"<<endl; }
415-
throw runtime_error("Opening file "+string(fname));
416+
417+
throw runtime_error("Opening file "+string(fname)+": not present)";
416418
}
417419
if(string(fname) != "stdin" && string(fname) != "/dev/stdin" && isCharDevice(fname)) {
418420
if (doDEBUG) { cerr<<humanTimeNow()<<" initFD - open("<<fname<<")"<<endl; }

0 commit comments

Comments
 (0)