aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/atlas.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/atlas.go b/cmd/atlas.go
index b0cebdb..60da8a2 100644
--- a/cmd/atlas.go
+++ b/cmd/atlas.go
@@ -208,9 +208,12 @@ func main() {
}
case "shell":
state := make(shell.State)
- interpreter := shell.NewInterpreter(state, os.Stdin)
+ interpreter := shell.NewInterpreter(state, os.Stdin, globalFlags.NumWorkers)
if err := interpreter.Run(); err != nil && err != io.EOF {
+ slog.Error("Fatal error occured", slog.String("err", err.Error()))
os.Exit(1)
+ } else {
+ fmt.Println("\nLeaving atlasi.")
}
}