error reporting (#1501)

* unified error reporting, removed redundancy, tests
This commit is contained in:
mmetc 2022-05-19 10:48:08 +02:00 committed by GitHub
parent bf3ea71630
commit 131ed1b0a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
17 changed files with 168 additions and 68 deletions

View file

@ -289,7 +289,7 @@ func TestWithWrongDBConfig(t *testing.T) {
apiServer, err := NewServer(config.API.Server)
assert.Equal(t, apiServer, &APIServer{})
assert.Equal(t, "unable to init database client: unknown database type", err.Error())
assert.Equal(t, "unable to init database client: unknown database type 'test'", err.Error())
}
func TestWithWrongFlushConfig(t *testing.T) {