Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public interface Options {
Optional<Boolean> verbose();

/**
* Indicates whether to show error messages.
* Indicates whether to show error stack traces.
*
* @return an {@link Optional} containing the boolean flag, or empty if not set
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public Optional<Boolean> verbose() {

@Override
public Optional<Boolean> showErrors() {
if (commandLine.hasOption(CLIManager.SHOW_ERRORS)) {
if (commandLine.hasOption(CLIManager.SHOW_ERRORS) || verbose().orElse(false)) {
return Optional.of(Boolean.TRUE);
}
return Optional.empty();
Expand Down