forked from epics_driver_modules/require
add error message
This commit is contained in:
1 parent
e1d6f3318b
commit
6a49e6f7e2
1 file changed
+6
@@ -36,6 +36,12 @@ int runScript(const char* filename, const char* args)
|
||||
char** pairs;
|
||||
int status = 0;
|
||||
|
||||
if (!filename)
|
||||
{
|
||||
fprintf(stderr, "Usage: runScript filename [macro=value,...]\n");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (interruptAccept)
|
||||
{
|
||||
fprintf(stderr, "Warning: Running script %s after iocInit may crash the ioc later.\n",
|
||||
|
||||
Reference in new issue
Block a user