mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-08 07:10:56 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user