From 78b3e8e447e0da3e2c0f08e67b7a27b18df88e66 Mon Sep 17 00:00:00 2001 From: Dheepak Krishnamurthy Date: Tue, 21 Apr 2020 16:27:43 -0600 Subject: [PATCH] Fix messages --- src/helics.nim | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helics.nim b/src/helics.nim index 3119633..b7d9d8a 100644 --- a/src/helics.nim +++ b/src/helics.nim @@ -137,7 +137,7 @@ proc run(path: string, silent = false): int = var f = open(path_to_config, fmRead) var runner = parseJson(f.readAll()) - print(&"""Running federation: `{runner["name"].getStr}`""", silent = silent) + print(&"""Running federation `{runner["name"].getStr}` with {runner["federates"].len} federates.""", silent = silent) var env = {:}.newStringTable for line in execProcess(ENV_COMMAND).splitLines(): @@ -151,7 +151,7 @@ proc run(path: string, silent = false): int = for f in runner["federates"]: let name = f["name"].getStr - print(&"""Running federate `{name}` as a background process""", silent = silent) + print(&"""Running federate `{name}`.""", silent = silent) var directory: string if f{"directory"} != nil: @@ -187,6 +187,8 @@ proc run(path: string, silent = false): int = discard break + sync() + if not error_occured: print("Success!")