From 53bafe07fe22ff72857cc136380b67f6c9829d80 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sat, 25 Jan 2003 22:33:38 +0000 Subject: [PATCH] Better error msg --- Fltk/Solvers.cpp | 6 +++--- Parser/OpenFile.cpp | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Fltk/Solvers.cpp b/Fltk/Solvers.cpp index b1b3fedab5..26836cdefd 100644 --- a/Fltk/Solvers.cpp +++ b/Fltk/Solvers.cpp @@ -1,4 +1,4 @@ -// $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 // @@ -65,8 +65,8 @@ int Solver(int num, char *args){ 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 -3 : Msg(GERROR, "Socket listen failed on '%s'", socket_name); break; - case -4 : Msg(GERROR, "Solver '%s' not responding on socket '%s'", - SINFO[num].name, socket_name); break; + case -4 : Msg(GERROR, "Solver is not responding (is '%s' correctly installed/in your path?)", + SINFO[num].executable_name); break; case -5 : Msg(GERROR, "Socket accept failed on '%s'", socket_name); break; } for(i=0 ; i<SINFO[num].nboptions ; i++) diff --git a/Parser/OpenFile.cpp b/Parser/OpenFile.cpp index 8e872e34c1..a0930d8b21 100644 --- a/Parser/OpenFile.cpp +++ b/Parser/OpenFile.cpp @@ -1,4 +1,4 @@ -// $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 // @@ -192,7 +192,7 @@ void OpenProblem(char *name){ // replace "/cygwin/x/" with "x:/" void decygwin(char *in, char *out){ - int i = 0, j = 0; + unsigned int i = 0, j = 0; while(i<strlen(in)){ if(!strncmp(in+i, "/cygdrive/", 10)){ @@ -218,7 +218,7 @@ void SystemCall(char *command){ char copy[strlen(command)+1]; decygwin(command, copy); - Msg(INFO, "Calling \"%s\"", copy); + Msg(INFO, "Calling '%s'", copy); CreateProcess(NULL, copy, NULL, NULL, FALSE, NORMAL_PRIORITY_CLASS, NULL, NULL, &suInfo, &prInfo); @@ -227,7 +227,7 @@ void SystemCall(char *command){ Msg(GERROR, "Could not find /bin/sh: aborting system call"); return; } - Msg(INFO, "Calling \"%s\"", command); + Msg(INFO, "Calling '%s'", command); system(command); #endif } -- GitLab