diff options
Diffstat (limited to 'src/ingen')
-rw-r--r-- | src/ingen/ingen.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ingen/ingen.cpp b/src/ingen/ingen.cpp index a63b4196..1c6f8af6 100644 --- a/src/ingen/ingen.cpp +++ b/src/ingen/ingen.cpp @@ -134,8 +134,12 @@ main(int argc, char** argv) (fmt("Invalid URI <%1%>") % uri).str().c_str()); SPtr<Interface> client(new Client::ThreadedSigClientInterface(1024)); engine_interface = world->new_interface(Raul::URI(uri), client); - ingen_try(bool(engine_interface), - (fmt("Unable to create interface to `%1%'") % uri).str().c_str()); + + if (!engine_interface && !conf.option("gui").get<int32_t>()) { + cerr << fmt("ingen: Error: Unable to create interface to `%1%'\n"); + delete world; + exit(EXIT_FAILURE); + } } world->set_interface(engine_interface); |