diff --git a/src/fsh.nim b/src/fsh.nim index cf3297c..e1c22fe 100644 --- a/src/fsh.nim +++ b/src/fsh.nim @@ -226,7 +226,9 @@ proc runBuiltin(builtin: string, args: openArray[string]): string = return "" of "setenv": if args.len < 2: - raise newException(Exception, "setenv: Not enough arguments provided") + var e = newException(ShellCommandError, "Setenv: not enough arguments provided") + e.command="setenv" + raise e try: envVariables[args[0]] = args[1..^1].join(":") putEnv(args[0], args[1..^1].join(":"))