File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/jdk.jlink/share/classes/jdk/tools/jlink/internal Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ int run(String[] args) {
229
229
List <String > remaining = optionsHelper .handleOptions (this , args );
230
230
if (remaining .size () > 0 && !options .suggestProviders ) {
231
231
throw taskHelper .newBadArgs ("err.orphan.arguments" ,
232
- remaining .stream ().collect (Collectors .joining (" " )))
232
+ remaining .stream ().collect (Collectors .joining (" " )))
233
233
.showUsage (true );
234
234
}
235
235
if (options .help ) {
@@ -259,8 +259,8 @@ int run(String[] args) {
259
259
}
260
260
261
261
if (options .modulePath .isEmpty ()) {
262
- throw taskHelper .newBadArgs ("err.modulepath.must.be.specified" )
263
- .showUsage (true );
262
+ throw taskHelper .newBadArgs ("err.modulepath.must.be.specified" )
263
+ .showUsage (true );
264
264
}
265
265
}
266
266
@@ -275,8 +275,12 @@ int run(String[] args) {
275
275
}
276
276
277
277
return EXIT_OK ;
278
+ } catch (FindException e ) {
279
+ log .println (taskHelper .getMessage ("err.prefix" ) + " " + e .getMessage ());
280
+ e .printStackTrace (log );
281
+ return EXIT_ERROR ;
278
282
} catch (PluginException | IllegalArgumentException |
279
- UncheckedIOException |IOException | FindException | ResolutionException e ) {
283
+ UncheckedIOException |IOException | ResolutionException e ) {
280
284
log .println (taskHelper .getMessage ("error.prefix" ) + " " + e .getMessage ());
281
285
if (DEBUG ) {
282
286
e .printStackTrace (log );
You can’t perform that action at this time.
0 commit comments