give some hints if we fail to load HTML templates

Fixes #986

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino
2022-09-14 12:25:19 +02:00
parent f8a19f747d
commit 5eca73a399
5 changed files with 16 additions and 8 deletions

View File

@@ -18,6 +18,12 @@ import (
"fmt"
)
const (
templateLoadErrorHints = "Try setting the absolute templates path in your configuration file " +
"or specifying the config directory adding the `-c` flag to the serve options. For example: " +
"sftpgo serve -c \"<path to dir containing the default config file and templates directory>\""
)
// ValidationError raised if input data is not valid
type ValidationError struct {
err string