[java-identity-provider] branch main updated: IDP-2416 - Capture more output of failed command line invocations
Codeberg
noreply at shibboleth.net
Tue Dec 9 17:27:08 UTC 2025
This is an automated email from the git hooks/post-receive script.
codeberg pushed a commit to branch main
in repository java-identity-provider.
View the commit online:
https://codeberg.org/Shibboleth/java-identity-provider/commit/fbe1ace630a28dbdafc6c349be4645ba9d54bc06
The following commit(s) were added to refs/heads/main by this push:
new fbe1ace63 IDP-2416 - Capture more output of failed command line invocations
fbe1ace63 is described below
commit fbe1ace630a28dbdafc6c349be4645ba9d54bc06
Author: Scott Cantor <cantor.2 at osu.edu>
AuthorDate: Tue Dec 9 12:26:57 2025 -0500
IDP-2416 - Capture more output of failed command line invocations
https://shibboleth.atlassian.net/browse/IDP-2416
Catch FileNotFound exception to fix confusing error output.
---
idp-cli/src/main/java/net/shibboleth/idp/cli/CLI.java | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/idp-cli/src/main/java/net/shibboleth/idp/cli/CLI.java b/idp-cli/src/main/java/net/shibboleth/idp/cli/CLI.java
index ca9534f6e..28124d7b9 100644
--- a/idp-cli/src/main/java/net/shibboleth/idp/cli/CLI.java
+++ b/idp-cli/src/main/java/net/shibboleth/idp/cli/CLI.java
@@ -15,6 +15,7 @@
package net.shibboleth.idp.cli;
import java.io.BufferedReader;
+import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
@@ -33,7 +34,7 @@ import net.shibboleth.shared.annotation.constraint.NotEmpty;
/**
- * Entry point for command line attribute utility.
+ * Entry point for generic command line utility.
*/
public final class CLI {
@@ -138,6 +139,8 @@ public final class CLI {
final String msg = e.getMessage();
assert msg != null;
errorAndExit(msg);
+ } catch (final FileNotFoundException e) {
+ errorAndExit(e.getMessage() + " returned File Not Found error (check IDP_BASE_URL?)");
} catch (final IOException e) {
errorAndExit((url != null ? "(" + url.toString() + ") " : "") + e.getMessage());
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list