Skip to content
This repository has been archived by the owner on Jul 18, 2022. It is now read-only.

Commit

Permalink
Fix messages
Browse files Browse the repository at this point in the history
  • Loading branch information
kdheepak committed Apr 21, 2020
1 parent 7645c6a commit 78b3e8e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/helics.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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:
Expand Down Expand Up @@ -187,6 +187,8 @@ proc run(path: string, silent = false): int =
discard
break

sync()

if not error_occured: print("Success!")


Expand Down

0 comments on commit 78b3e8e

Please sign in to comment.