From cacf14a41e7a904895faf4781fd83fda3c353554 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Fri, 19 Feb 2016 16:00:51 +1300 Subject: [PATCH] Fixed bug that wasn't showing the StaticRootPath when validation failed --- pkg/setting/setting.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index 3de0e4b558f..803f293a33f 100644 --- a/pkg/setting/setting.go +++ b/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 {