Browse Source

Merge pull request #128 from idank/hyde

---

Currently results in a traceback when the command fails.

Ideally we should actually log stderr, since in most apps
thats where the errors go when something goes wrong.
main
Lakshmi Vyasarajan 13 years ago
parent
commit
792ff475d5
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      hyde/plugin.py

+ 1
- 1
hyde/plugin.py View File

@@ -389,7 +389,7 @@ class CLTransformer(Plugin):
self.logger.debug( self.logger.debug(
"Calling executable [%s] with arguments %s" % "Calling executable [%s] with arguments %s" %
(args[0], unicode(args[1:]))) (args[0], unicode(args[1:])))
subprocess.check_call(args)
subprocess.check_output(args)
except subprocess.CalledProcessError, error: except subprocess.CalledProcessError, error:
self.logger.error(traceback.format_exc()) self.logger.error(traceback.format_exc())
self.logger.error(error.output) self.logger.error(error.output)


Loading…
Cancel
Save