# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id: GPG.py,v 1.1 2006/12/15 18:21:57 mlhuang Exp $
+# $Id: GPG.py,v 1.2 2007/01/05 18:50:40 mlhuang Exp $
#
import xmlrpclib
p.stdin.write(message)
p.stdin.close()
signature = p.stdout.read()
+ err = p.stderr.read()
rc = p.wait()
# Clean up
shutil.rmtree(homedir)
if rc:
- raise PLCAuthenticationFailure, "GPG signing failed with return code %d" % rc
+ raise PLCAuthenticationFailure, "GPG signing failed with return code %d: %s" % (rc, err)
return signature