bugfixes
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 7 Apr 2016 15:26:53 +0000 (17:26 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 7 Apr 2016 15:26:53 +0000 (17:26 +0200)
nepi/util/execfuncs.py

index 502906c..0d61b42 100644 (file)
@@ -142,7 +142,7 @@ def lspawn(command, pidfile,
     else:
         stderr = ' ' + stderr
     
-    escaped_pidfile = shell_escape(pidfile),
+    escaped_pidfile = shell_escape(pidfile)
     daemon_command = '{{ {{ {command}  > {stdout} 2>{stderr} < {stdin} & }} ; echo $! 1 > {escaped_pidfile} ; }}'\
                      .format(**locals())
     
@@ -156,8 +156,8 @@ def lspawn(command, pidfile,
     (out, err), proc = lexec(cmd)
     
     if proc.wait():
-        raise RuntimeError("Failed to set up application on host {}: {} {}"
-                           .format(host, out, err))
+        raise RuntimeError("Failed to set up local application: {} {}"
+                           .format(out, err))
 
     return ((out, err), proc)