Skip to content

Commit 9164e39

Browse files
committed
specify the path in the exception
1 parent 62198ef commit 9164e39

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

plugins/src/main/java/opengrok/auth/plugin/AbstractLdapPlugin.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*/
1919

2020
/*
21-
* Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved.
21+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
2222
*/
2323
package opengrok.auth.plugin;
2424

@@ -133,7 +133,8 @@ public void load(Map<String, Object> parameters) {
133133
cfg = getConfiguration(configurationPath);
134134
ldapProvider = new LdapFacade(cfg);
135135
} catch (IOException ex) {
136-
throw new IllegalArgumentException("Unable to read the configuration", ex);
136+
throw new IllegalArgumentException(
137+
String.format("Unable to read the configuration from '%s'", configurationPath), ex);
137138
}
138139
}
139140

0 commit comments

Comments
 (0)