feat(eventstore): sdk (#39)

* sdk

* fix(sdk): return correct error type

* AppendEventError instead of Aggregater error

* fix(tests): tests

* fix(tests): wantErr to is error func
This commit is contained in:
Silvan
2020-04-07 18:36:37 +02:00
committed by GitHub
parent 970586dfc9
commit 191690d905
27 changed files with 523 additions and 233 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ type UnauthenticatedError struct {
}
func ThrowUnauthenticated(parent error, id, message string) error {
return &UnauthenticatedError{createCaosError(parent, id, message)}
return &UnauthenticatedError{CreateCaosError(parent, id, message)}
}
func ThrowUnauthenticatedf(parent error, id, format string, a ...interface{}) error {