1
0
mirror of https://github.com/golang/go synced 2024-11-05 14:36:11 -07:00
go/blog
Agniva De Sarker 8ea45f9674 blog: show a helpful error for invalid template directory
Currently, if the blog binary is executed outside the root directory
without any additional flags, it bails out with the following error -
"open template/root.tmpl: no such file or directory"

This CL prints out a more user friendly error which allows the user to
learn that there is a flag with which the template directory can be set.

Fixes golang/go#22622

Change-Id: I726e7c28f5e5036146769ca01516368f45a6262c
Reviewed-on: https://go-review.googlesource.com/86855
Run-TryBot: Andrew Gerrand <adg@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2018-01-15 07:04:26 +00:00
..
atom blog/atom: support atom:link as in RFC4287 4.2.7 2017-02-04 21:42:09 +00:00
blog.go blog: show a helpful error for invalid template directory 2018-01-15 07:04:26 +00:00