浏览代码

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
 		input, err := getInput(ctx)
23
 		input, err := getInput(ctx)
24
 		if err != nil {
24
 		if err != nil {
25
 			fmt.Fprintln(os.Stderr, "Error reading input: ", err)
25
 			fmt.Fprintln(os.Stderr, "Error reading input: ", err)
26
-			os.Exit(1)
26
+			os.Exit(15)
27
 		}
27
 		}
28
 
28
 
29
 		runnable, err := runnable.Parse(ctx, input)
29
 		runnable, err := runnable.Parse(ctx, input)