Add diagnostic hints to init timeout message
authorMichael Lynch <git@mtlynch.io>
Sun, 26 Apr 2020 21:13:25 +0000 (17:13 -0400)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 27 Apr 2020 11:23:35 +0000 (13:23 +0200)
commitfe60b7d9e4c12dbc428f992c05969bc14c7fe7a2
tree138ba93a606b57c3376678f3fa01431c534907da
parentc2d9fd1ebef89cc19256e6799f29ab3d27eaf879
Add diagnostic hints to init timeout message

Expand the text in the init timeout message to give the reader more hints as to what may be causing the issue.

The current error sent me on a wild goose chase trying to debug my shortcodes, but it turned out that the issue was just that I wasn't caching my resources/ directory on my build server. Once I found this blog post, I solved the issue in minutes:

https://www.henriksommerfeld.se/hugo-timeout-not-a-circular-loop-in-shortcode/

Googling the error message yields several additional posts from users who focus on loops in their shortcode when the problem seems to be overly-expensive builds.
lazy/init.go