Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

log fatal error when PDF conversion fails #3949

Merged
merged 2 commits into from Aug 8, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Aug 8, 2013

don't user batch mode, which suppresses too much output

finish up PR #3948

don't user batch mode, which suppresses too much output
@fperez fperez mentioned this pull request Aug 8, 2013
p = subprocess.Popen(command, stdout=stdout, stdin=null)
out, err = p.communicate()
if p.returncode:
if self.verbose:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this logic backwards? If verbose, output should be preserved...

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if verbose, output has already been displayed (it was not swallowed by the pipe, so out is None).

@jdfreder
Copy link
Member

jdfreder commented Aug 8, 2013

👍

minrk added a commit that referenced this pull request Aug 8, 2013
log fatal error when PDF conversion fails
@minrk minrk merged commit 6727e39 into ipython:master Aug 8, 2013
@minrk minrk deleted the log-pdf-failure branch August 8, 2013 18:15
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
log fatal error when PDF conversion fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants