From cacf14a41e7a904895faf4781fd83fda3c353554 Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Fri, 19 Feb 2016 16:00:51 +1300 Subject: [PATCH 1/2] 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 { From 4c3048964d5f575974b7f54161abe9e0b694e2ad Mon Sep 17 00:00:00 2001 From: Robert McLeod Date: Fri, 19 Feb 2016 16:09:40 +1300 Subject: [PATCH 2/2] removed unused import: errors --- pkg/setting/setting.go | 1 - 1 file changed, 1 deletion(-) diff --git a/pkg/setting/setting.go b/pkg/setting/setting.go index 803f293a33f..1dee4445816 100644 --- a/pkg/setting/setting.go +++ b/pkg/setting/setting.go @@ -6,7 +6,6 @@ package setting import ( "bytes" "encoding/json" - "errors" "fmt" "net/url" "os"