Skip to content

Remove extra warning when require fails - #113

Merged
headius merged 1 commit into
jruby:masterfrom
headius:remove_failed_require_warning
Sep 20, 2026
Merged

headius merged 1 commit into
jruby:masterfrom
headius:remove_failed_require_warning

Conversation

@headius

@headius headius commented Sep 20, 2026 •

Copy link
Copy Markdown
Member

This warning about a failed jar load is next to both

  • a debug of the original error
  • a re-raise of the original error as a JarLoadError

I think it's unnecessary to also do a non-verbose warning about the failed load. The debug could possibly become a verbose warning, but an uncaught raised exception would log everything necessary and a caught raised exception probably indicates the caller does not want to see output.

Fixes #112

@headius headius added this to the 0.6.1 milestone Sep 20, 2026
@headius
headius force-pushed the remove_failed_require_warning branch from 36b343b to 8854853 Compare September 20, 2026 10:33
This warning about a failed jar load is next to both

* a debug of the original error
* a re-raise of the original error as a JarLoadError

I think it's unnecessary to also do a non-verbose warning about the
failed load. The debug could possibly become a verbose warning, but
an uncaught raised exception would log everything necessary and a
caught raised exception probably indicates the caller does not want
to see output.

Fixes jruby#112
@headius
headius force-pushed the remove_failed_require_warning branch from 8854853 to 5427749 Compare September 20, 2026 10:39
@headius
headius requested a review from kares September 20, 2026 11:19
@headius
headius merged commit 48eaaeb into jruby:master Sep 20, 2026
3 checks passed
@headius
headius deleted the remove_failed_require_warning branch September 20, 2026 15:01
headius added a commit to jruby/jruby that referenced this pull request Sep 20, 2026
This removes the extraneous warning when require_jar fails.

See jruby/jar-dependencies#113
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.

New jar loading failure warning printed on the console

1 participant