Skip to content

Commit

Permalink
softMain log iocInit() failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Nov 25, 2023
1 parent 655f0a5 commit 258494a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions modules/database/src/std/softIoc/softMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include "epicsExit.h"
#include "epicsStdio.h"
#include "epicsString.h"
#include "errlog.h"
#include "dbStaticLib.h"
#include "subRecord.h"
#include "dbAccess.h"
Expand Down Expand Up @@ -92,7 +93,7 @@ void usage(const char *arg0, const std::string& base_dbd) {
"interactive IOC shell.\n"
"\n"
"Compiled-in path to softIoc.dbd is:\n"
"\t"<<base_dbd.c_str()<<"\n";
"\t"<<base_dbd.c_str()<<std::endl;
}

void errIf(int ret, const std::string& msg)
Expand Down Expand Up @@ -239,7 +240,10 @@ int main(int argc, char *argv[])
if (loadedDb) {
if (verbose)
std::cout<<"iocInit()\n";
iocInit();
if(iocInit()) {
std::cerr<<ERL_ERROR " during iocInit()\n"
<<" " ANSI_BOLD("IOC not running!")<<std::endl;
}
epicsThreadSleep(0.2);
}

Expand Down

0 comments on commit 258494a

Please sign in to comment.