Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Better warning when you don't have java installed #1

Closed
jwheare opened this Issue · 3 comments

4 participants

@jwheare

At the moment you just get the "compression failed" RuntimeError in the compress method.

If you poke that exception a bit more it says there was a Broken Pipe error in the Open3.popen3(*command) call which you can then trace to the @command in initialize to see that the java call is failing.

This took me a little while as I'm not that familiar with ruby, and didn't really understand what that popen3 command was doing.

Maybe at a test for java that raises a more descriptive exception earlier on?

@tfln

seconded. Thanks for the solution :)

@anuaimi

all that is probably required is to add a puts with the exception message. that is how I found out why the compression was failing (in regards to another issue).

      rescue Exception => e
        puts e.message
        raise RuntimeError, "compression failed"
@stevecrozz
Collaborator

This issue should be resolved now. I added my comments on #20

@stevecrozz stevecrozz closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.