fs: fix confusing "didn't find section in config file" error
This change decorates the error with the section name not found which will hopefully save user confusion. Fixes #8170
This commit is contained in:
@@ -358,7 +358,7 @@ func TestRemoteServing(t *testing.T) {
|
||||
URL: "[notfoundremote:]/",
|
||||
Status: http.StatusInternalServerError,
|
||||
Expected: `{
|
||||
"error": "failed to make Fs: didn't find section in config file",
|
||||
"error": "failed to make Fs: didn't find section in config file (\"notfoundremote\")",
|
||||
"input": null,
|
||||
"path": "/",
|
||||
"status": 500
|
||||
|
||||
Reference in New Issue
Block a user