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:
akarki15
2016-11-12 12:30:15 -05:00
parent 1b4902f196
commit 68db934507
2 changed files with 3 additions and 8 deletions

View File

@@ -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)