Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1838

better error message when download fails

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • None
    • cli
    • None

      I recently got set up to run jcheck locally. However, when connected to Oracle's VPN, it fails as follows:

      > git skara jcheck --ignore branches,committer,reviewers --verbose
      Checking: 948d3aa3fed7e1cfa9c07fce40651c84610da99a
      error: exception thrown during jcheck: java.net.ConnectException

      With some judicious use of -Xlog:exceptions, it appears as though the problem occurs when trying to download the census as I see a ConnectException coming from https://github.com/openjdk/skara/blob/9a9400082adabf4856623e9943fa37870ca7cb90/census/src/main/java/org/openjdk/skara/census/Census.java#L198. Setting the https_proxy env var resolved the issue.

      It would be helpful if the error message could indicate this possible cause and corrective action or at least state the URL that failed to be downloaded.

            zsong Zhao Song
            dnsimon Douglas Simon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: