Skip to content
Snippets Groups Projects
Commit 0463689f authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

No commit message

No commit message
parent e86787b5
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,7 @@ void GetOptions(int argc, char *argv[])
}
else if(!strcmp(argv[i] + 1, "onelab")) {
i++;
if(argv[i] && argv[i + 1]){
if(argv[i] && argv[i + 1] && argv[i + 1][0] != '-'){
Msg::InitializeOnelab(argv[i], argv[i + 1]);
i += 2;
}
......
......@@ -637,7 +637,8 @@ void Msg::InitializeOnelab(const std::string &name, const std::string &sockname)
if(_onelabClient) delete _onelabClient;
if(sockname.empty()){
_onelabClient = new onelab::localClient("Gmsh");
_onelabClient->fromFile(name);
if(!_onelabClient->fromFile(name))
Error("Error loading onelab database '%s'", name.c_str());
}
else{
onelab::remoteNetworkClient *c = new onelab::remoteNetworkClient(name, sockname);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment