Skip to content

Commit 030fe7d

Browse files
committed
Clearer error message for failing to load configuration file.
Signed-off-by: Ville Ranta-aho <ville@ville-pekka.com>
1 parent 04145ef commit 030fe7d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

command/src/com/mirth/connect/cli/CommandLineInterface.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,8 @@ private void run(String[] args) {
166166
} catch (ConfigurationException cex) {
167167
// loading of the configuration file failed
168168
if (line.hasOption("c")) {
169-
error("We could not find the file: " + line.getOptionValue("c"), null);
169+
// An explicit configuration file was specified with -c; fail fast with a clear error
170+
error("Failed to load the configuration file specified with -c: " + line.getOptionValue("c"), cex);
170171
System.exit(2);
171172
}
172173
error("Loading configuration failed.", null);

0 commit comments

Comments
 (0)