[28752] in Source-Commits

home help back first fref pref prev next nref lref last post

athrun commit [debian]: Give a better error message on exec failure

daemon@ATHENA.MIT.EDU (Anders Kaseorg)
Sat May 6 18:02:20 2017

Date: Sat, 6 May 2017 18:02:15 -0400
From: Anders Kaseorg <andersk@mit.edu>
Message-Id: <201705062202.v46M2FKg004448@drugstore.mit.edu>
To: source-commits@mit.edu

https://github.com/mit-athena/athrun/commit/9318087b7bc7d365b5fc80ea9dc571009d131c19
commit 9318087b7bc7d365b5fc80ea9dc571009d131c19
Author: Anders Kaseorg <andersk@mit.edu>
Date:   Wed Apr 26 18:56:22 2017 -0400

    Give a better error message on exec failure
    
    Signed-off-by: Anders Kaseorg <andersk@mit.edu>

 attachandrun |    2 +-
 setup.py     |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/attachandrun b/attachandrun
index 8a16bde..8660eb3 100755
--- a/attachandrun
+++ b/attachandrun
@@ -77,7 +77,7 @@ def main():
 
     # Actually execute the program, 
     error = execute(program_location, argv)
-    print >>sys.stderr, "%s: %s" % (progname, os.strerror(error))
+    print >>sys.stderr, "%s: %s: %s" % (progname, program_location, os.strerror(error))
     
 if __name__ == '__main__':
     try:
diff --git a/setup.py b/setup.py
index 11f7b15..2352198 100644
--- a/setup.py
+++ b/setup.py
@@ -3,7 +3,7 @@
 from distutils.core import setup
 
 setup(name='attachandrun',
-      version='10.3.1',
+      version='10.3.2',
       description='Athena utility for scripts to run a program from a locker',
       author='Alexander Chernyakhovsky',
       scripts=['attachandrun']

home help back first fref pref prev next nref lref last post