Jelajahi Sumber

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 tahun lalu
induk
melakukan
6c9b55367e
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 "", 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) {