From b2b500f563c3bb36751a4c1610df113c4daad604 Mon Sep 17 00:00:00 2001 From: Anthony Fok Date: Thu, 26 Apr 2018 14:17:42 -0600 Subject: [PATCH] hugolib: Use double quotes instead of back quotes so that '\n' is interpreted in the timeout warning. --- hugolib/page.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/page.go b/hugolib/page.go index e79b063cc..7c2ac70b2 100644 --- a/hugolib/page.go +++ b/hugolib/page.go @@ -305,7 +305,7 @@ func (p *Page) initContent() { 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)