Bläddra i källkod

Return with weirder exit status of 15 on read error

Alois Mahdal 3 dagar sedan
förälder
incheckning
c20a1d48de
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      app/main.go

+ 1
- 1
app/main.go Visa fil

@@ -23,7 +23,7 @@ func repl(ctx *core.Context) {
23 23
 		input, err := getInput(ctx)
24 24
 		if err != nil {
25 25
 			fmt.Fprintln(os.Stderr, "Error reading input: ", err)
26
-			os.Exit(1)
26
+			os.Exit(15)
27 27
 		}
28 28
 
29 29
 		runnable, err := runnable.Parse(ctx, input)