fix: add better error message

This commit is contained in:
Julian Sommer
2026-03-20 11:12:32 +10:00
parent 6cdeea3aa8
commit 42cb6dbed0
+2 -1
View File
@@ -268,7 +268,8 @@ func runimagesImportCmd(cmd *cobra.Command, args []string) {
imageDir := fmt.Sprintf("%s/images", baseDir)
if !admin.FileExists(imageDir) {
fmt.Fprintf(os.Stderr, "Image directory does not exist. Base path specified correctly? %s", imageDir)
fmt.Fprintf(os.Stderr, "Error: image directory does not exist: %s\n\n", imageDir)
fmt.Fprintf(os.Stderr, "Run 'spx admin init' first to initialize the Spinifex platform.\n")
os.Exit(1)
}