From: bep Date: Wed, 18 Mar 2015 11:27:56 +0000 (+0100) Subject: Calculate the next Hugo version in Deprecated X-Git-Tag: v0.14~182 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f4244be036716871dc6d4058d7bb08f1b58d9d53;p=brevno-suite%2Fhugo Calculate the next Hugo version in Deprecated Deprecation will be an ongoing activity for many future versions. --- diff --git a/helpers/general.go b/helpers/general.go index f7ff3381..3e0a85fb 100644 --- a/helpers/general.go +++ b/helpers/general.go @@ -133,7 +133,7 @@ func Deprecated(object, item, alternative string) { } deprecatedLogs.Lock() if !deprecatedLogs.m[key] { - jww.ERROR.Printf("%s's %s is deprecated and will be removed in Hugo 0.15. Use %s instead.", object, item, alternative) + jww.ERROR.Printf("%s's %s is deprecated and will be removed in Hugo %s. Use %s instead.", object, item, NextHugoReleaseVersion(), alternative) deprecatedLogs.m[key] = true } deprecatedLogs.Unlock()