Sfoglia il codice sorgente

Fixed bug that wasn't showing the StaticRootPath when validation failed

Robert McLeod 10 anni fa
parent
commit
cacf14a41e
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      pkg/setting/setting.go

+ 1 - 1
pkg/setting/setting.go

@@ -386,7 +386,7 @@ func validateStaticRootPath() error {
 		return nil
 	}
 
-	return errors.New("Failed to detect generated css or javascript files in static root (%s), have you executed default grunt task?")
+	return fmt.Errorf("Failed to detect generated css or javascript files in static root (%s), have you executed default grunt task?", StaticRootPath)
 }
 
 func NewConfigContext(args *CommandLineArgs) error {