Use generic typed error pattern
The codebase doesn't yet use the explicitly typed error pattern. To keep things consistent, lets use the generic error type.
This commit is contained in:
@@ -84,7 +84,8 @@ func Test_GetBookmark(t *testing.T) {
|
||||
}
|
||||
|
||||
_, err = GetBookmark("../../data", "bar")
|
||||
assert.Equal(t, ErrNonExistingBookmark("bar"), err)
|
||||
expErrStr := "couldn't find a bookmark with name bar"
|
||||
assert.Equal(t, expErrStr, err.Error())
|
||||
|
||||
_, err = GetBookmark("foo", "bookmark")
|
||||
assert.Error(t, err)
|
||||
|
||||
Reference in New Issue
Block a user