mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2025-05-11 12:25:53 +02:00
error reporting (#1501)
* unified error reporting, removed redundancy, tests
This commit is contained in:
parent
bf3ea71630
commit
131ed1b0a7
17 changed files with 168 additions and 68 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue