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

Better error msg
parent 00adce3a
No related branches found
No related tags found
No related merge requests found
// $Id: Solvers.cpp,v 1.16 2003-01-25 00:05:49 geuzaine Exp $ // $Id: Solvers.cpp,v 1.17 2003-01-25 22:33:38 geuzaine Exp $
// //
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -65,8 +65,8 @@ int Solver(int num, char *args){ ...@@ -65,8 +65,8 @@ int Solver(int num, char *args){
case -1 : Msg(GERROR, "Couldn't create socket '%s'", socket_name); break; case -1 : Msg(GERROR, "Couldn't create socket '%s'", socket_name); break;
case -2 : Msg(GERROR, "Couldn't bin socket to name '%s'", socket_name); break; case -2 : Msg(GERROR, "Couldn't bin socket to name '%s'", socket_name); break;
case -3 : Msg(GERROR, "Socket listen failed on '%s'", socket_name); break; case -3 : Msg(GERROR, "Socket listen failed on '%s'", socket_name); break;
case -4 : Msg(GERROR, "Solver '%s' not responding on socket '%s'", case -4 : Msg(GERROR, "Solver is not responding (is '%s' correctly installed/in your path?)",
SINFO[num].name, socket_name); break; SINFO[num].executable_name); break;
case -5 : Msg(GERROR, "Socket accept failed on '%s'", socket_name); break; case -5 : Msg(GERROR, "Socket accept failed on '%s'", socket_name); break;
} }
for(i=0 ; i<SINFO[num].nboptions ; i++) for(i=0 ; i<SINFO[num].nboptions ; i++)
......
// $Id: OpenFile.cpp,v 1.35 2003-01-24 23:13:36 geuzaine Exp $ // $Id: OpenFile.cpp,v 1.36 2003-01-25 22:33:38 geuzaine Exp $
// //
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -192,7 +192,7 @@ void OpenProblem(char *name){ ...@@ -192,7 +192,7 @@ void OpenProblem(char *name){
// replace "/cygwin/x/" with "x:/" // replace "/cygwin/x/" with "x:/"
void decygwin(char *in, char *out){ void decygwin(char *in, char *out){
int i = 0, j = 0; unsigned int i = 0, j = 0;
while(i<strlen(in)){ while(i<strlen(in)){
if(!strncmp(in+i, "/cygdrive/", 10)){ if(!strncmp(in+i, "/cygdrive/", 10)){
...@@ -218,7 +218,7 @@ void SystemCall(char *command){ ...@@ -218,7 +218,7 @@ void SystemCall(char *command){
char copy[strlen(command)+1]; char copy[strlen(command)+1];
decygwin(command, copy); decygwin(command, copy);
Msg(INFO, "Calling \"%s\"", copy); Msg(INFO, "Calling '%s'", copy);
CreateProcess(NULL, copy, NULL, NULL, FALSE, CreateProcess(NULL, copy, NULL, NULL, FALSE,
NORMAL_PRIORITY_CLASS, NULL, NULL, &suInfo, &prInfo); NORMAL_PRIORITY_CLASS, NULL, NULL, &suInfo, &prInfo);
...@@ -227,7 +227,7 @@ void SystemCall(char *command){ ...@@ -227,7 +227,7 @@ void SystemCall(char *command){
Msg(GERROR, "Could not find /bin/sh: aborting system call"); Msg(GERROR, "Could not find /bin/sh: aborting system call");
return; return;
} }
Msg(INFO, "Calling \"%s\"", command); Msg(INFO, "Calling '%s'", command);
system(command); system(command);
#endif #endif
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment