From 4b6902de4986bd6f5bd2b0b52214bb01bf2abb24 Mon Sep 17 00:00:00 2001 From: grog Date: Wed, 24 Jan 2024 15:10:41 -0800 Subject: [PATCH] error logging fix --- src/main/java/org/myrobotlab/service/Runtime.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/myrobotlab/service/Runtime.java b/src/main/java/org/myrobotlab/service/Runtime.java index c670739514..2b4b40e59f 100644 --- a/src/main/java/org/myrobotlab/service/Runtime.java +++ b/src/main/java/org/myrobotlab/service/Runtime.java @@ -4834,9 +4834,9 @@ public C readServiceConfig(String configName, String n try { sc = CodecUtils.readServiceConfig(filename, configType); } catch (ConstructorException e) { - error("%s invalid %s %s. Please remove it from the file.", name, filename, e.getCause().getMessage()); - } catch (IOException e) { - error(e); + error("config %s invalid %s %s. Please remove it from the file.", name, filename, e.getCause().getMessage()); + } catch (Exception e) { + error("config could not load %s file is invalid", filename); } } return sc;