diff --git a/cliutils/config.nim b/cliutils/config.nim index fe25b09..0c0a660 100644 --- a/cliutils/config.nim +++ b/cliutils/config.nim @@ -95,7 +95,7 @@ proc getJson*( elif cfg.json.hasKey(jsonKey): return cfg.json[jsonKey] else: raise newException(ValueError, "cannot find a configuration value for \"" & key & "\"") except Exception: - raise newException(ValueError, "cannot parse value as JSON:" & getCurrentExceptionMsg()) + raise newException(ValueError, "cannot parse [" & getVal(cfg, key) & "] as JSON:" & getCurrentExceptionMsg()) proc getJson*( cfg: CombinedConfig,