pygments / pygments.rb

💎 Ruby wrapper for Pygments syntax highlighter
MIT License
572 stars 141 forks source link

Added python error catching #158

Closed shybovycha closed 7 years ago

shybovycha commented 8 years ago

When python2 command fails for some reason, all you get is just Failed to get header. error. This PR adds more meaningful error message.

So if one for some reason (for example, when using pyenv) have no python2 binary, one should have a meaningful notification on what's happening.

gfx commented 7 years ago

Looks great. Can you add a test for it?