~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/interpret.py

  • Committer: David Coles
  • Date: 2010-02-26 10:42:31 UTC
  • Revision ID: coles.david@gmail.com-20100226104231-nm6tfvkgox7xulz7
interpret: Fix execute_raw's printing of stderr - can't read pipe after communicate returns.

Show diffs side-by-side

added added

removed removed

Lines of Context:
455
455
    exitcode = proc.returncode
456
456
 
457
457
    if exitcode != 0:
458
 
        raise ExecutionError('subprocess ended with code %d, stderr %s' %
459
 
                             (exitcode, proc.stderr.read()))
 
458
        raise ExecutionError('subprocess ended with code %d, stderr: "%s"' %
 
459
                             (exitcode, stderr))
460
460
    return (stdout, stderr)