From f598c21af0366b14262036d53b70ea5af985d4b1 Mon Sep 17 00:00:00 2001 From: Vladimir Kotal Date: Mon, 6 Jan 2025 15:02:05 +0100 Subject: [PATCH] specify the path in the exception --- .../main/java/opengrok/auth/plugin/AbstractLdapPlugin.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/src/main/java/opengrok/auth/plugin/AbstractLdapPlugin.java b/plugins/src/main/java/opengrok/auth/plugin/AbstractLdapPlugin.java index 50d87997bbd..da956d909da 100644 --- a/plugins/src/main/java/opengrok/auth/plugin/AbstractLdapPlugin.java +++ b/plugins/src/main/java/opengrok/auth/plugin/AbstractLdapPlugin.java @@ -18,7 +18,7 @@ */ /* - * Copyright (c) 2017, 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved. */ package opengrok.auth.plugin; @@ -133,7 +133,8 @@ public void load(Map parameters) { cfg = getConfiguration(configurationPath); ldapProvider = new LdapFacade(cfg); } catch (IOException ex) { - throw new IllegalArgumentException("Unable to read the configuration", ex); + throw new IllegalArgumentException( + String.format("Unable to read the configuration from '%s'", configurationPath), ex); } }