Merge pull request #4072 from AutogrowSystems/settings-validation-static-root-path-error-fix

Fixed bug that wasn't showing the StaticRootPath when validation failed
This commit is contained in:
Torkel Ödegaard 2016-02-19 07:49:40 +01:00
commit ed58474c37

View File

@ -6,7 +6,6 @@ package setting
import (
"bytes"
"encoding/json"
"errors"
"fmt"
"net/url"
"os"
@ -386,7 +385,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 {