add error message

This commit is contained in:
2015-11-03 15:33:26 +01:00
parent e1d6f3318b
commit 6a49e6f7e2
+6
View File
@@ -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",