Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure error message in console. #16687

Merged
merged 3 commits into from
Dec 19, 2024
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
1 change: 1 addition & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ https://cyberduck.io/
- [Bugfix] Repeated prompts for passphrase (Cryptomator, Windows) (#16645)
- [Bugfix] Missing list of buckets (Linode Object Storage) (#16659)
- [Bugfix] Enable encryption by default (SMB) (#16678)
- [Bugfix] Application fails to execute and exits with no error message (CLI) (#16683)

9.1.0
- [Feature] Display transfer progress in Finder for downloads and uploads (macOS) (#16568)
Expand Down
5 changes: 3 additions & 2 deletions cli/src/main/java/ch/cyberduck/cli/Terminal.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,12 @@ protected static void open(final String[] args, final TerminalPreferences defaul
System.exit(1);
}
catch(FactoryException e) {
console.printf("%s%n", e.getMessage());
console.printf("Configuration error %s%n", e.getMessage());
System.exit(1);
}
catch(Throwable error) {
error.printStackTrace(System.err);
console.printf("Fatal error %s%n", error.getMessage());
error.printStackTrace(new LoggerPrintStream());
System.exit(1);
}
finally {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,12 @@ public LoggerPrintStream(final OutputStream out, final Level level) {
public void println(final String message) {
log.log(level, message);
}

/**
* Print stacktrace
*/
@Override
public void println(final Object x) {
this.println(x != null ? x.toString() : null);
}
}
5 changes: 5 additions & 0 deletions www/update/changelog.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@
<li><span class="label label-warning">Bugfix</span> Enable encryption by default (SMB) (<a
target="_blank" href="https://trac.cyberduck.io/ticket/16678">#16678</a>)
</li>
<li><span class="label label-warning">Bugfix</span> Application fails to execute and exits with no error message
(CLI) (<a
target="_blank" href="https://trac.cyberduck.io/ticket/16683">#16683</a>)
</li>

</ul>

<p>
Expand Down
Loading