浏览代码

So much for golang error processing...

Guillaume Tardif 5 年之前
父节点
当前提交
8eb380a5a4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cli/cmd/context/createaci.go

+ 1 - 1
cli/cmd/context/createaci.go

@@ -42,7 +42,7 @@ func createAciCommand() *cobra.Command {
 		RunE: func(cmd *cobra.Command, args []string) error {
 			contextData, description, err := getAciContextData(cmd.Context(), opts)
 			if err != nil {
-				return nil
+				return err
 			}
 			return createDockerContext(cmd.Context(), args[0], store.AciContextType, description, contextData)
 		},