mirror of
https://github.com/drakkan/sftpgo.git
synced 2025-12-06 14:20:55 +03:00
printf: replace %#v with the more explicit %q
Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
@@ -216,7 +216,7 @@ func initializeSQLiteProvider(basePath string) error {
|
||||
if config.ConnectionString == "" {
|
||||
dbPath := config.Name
|
||||
if !util.IsFileInputValid(dbPath) {
|
||||
return fmt.Errorf("invalid database path: %#v", dbPath)
|
||||
return fmt.Errorf("invalid database path: %q", dbPath)
|
||||
}
|
||||
if !filepath.IsAbs(dbPath) {
|
||||
dbPath = filepath.Join(basePath, dbPath)
|
||||
|
||||
Reference in New Issue
Block a user