shithub: hugo

Download patch

ref: b2b500f563c3bb36751a4c1610df113c4daad604
parent: 2fb9af59c14b1732ba1a2f21794e2cf8dfca0604
author: Anthony Fok <[email protected]>
date: Thu Apr 26 10:17:42 EDT 2018

hugolib: Use double quotes instead of back quotes

so that '\n' is interpreted in the timeout warning.

--- a/hugolib/page.go
+++ b/hugolib/page.go
@@ -305,7 +305,7 @@
 
 		select {
 		case <-ctx.Done():
-			p.s.Log.WARN.Printf(`WARNING: Timed out creating content for page %q (.Content will be empty). This is most likely a circular shortcode content loop that should be fixed. If this is just a shortcode calling a slow remote service, try to set "timeout=20000" (or higher, value is in milliseconds) in config.toml.\n`, p.pathOrTitle())
+			p.s.Log.WARN.Printf("WARNING: Timed out creating content for page %q (.Content will be empty). This is most likely a circular shortcode content loop that should be fixed. If this is just a shortcode calling a slow remote service, try to set \"timeout=20000\" (or higher, value is in milliseconds) in config.toml.\n", p.pathOrTitle())
 		case err := <-c:
 			if err != nil {
 				p.s.Log.ERROR.Println(err)