瀏覽代碼

fix: graceful error message when server fails to start (#984)

* fix: graceful error message when server fails to start

Signed-off-by: wfnuser <wfnuser@126.com>

* fix: wordings

Signed-off-by: wfnuser <wfnuser@126.com>
Mark Huang 3 年之前
父節點
當前提交
6c9b55367e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/conf/path.go

+ 1 - 1
internal/conf/path.go

@@ -122,7 +122,7 @@ func relativePath(subdir string) (dir string, err error) {
 		return confDir, nil
 		return confDir, nil
 	}
 	}
 
 
-	return "", fmt.Errorf("conf dir not found, please set KuiperBaseKey program environment variable correctly.")
+	return "", fmt.Errorf("dir %s not found, please make sure it is created.", confDir)
 }
 }
 
 
 func ProcessPath(p string) (string, error) {
 func ProcessPath(p string) (string, error) {