瀏覽代碼

Return with weirder exit status of 15 on read error

Alois Mahdal 3 天之前
父節點
當前提交
c20a1d48de
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      app/main.go

+ 1
- 1
app/main.go 查看文件

@@ -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)