From 79d8dc1929422a8fc5d3837e3411107e4472e725 Mon Sep 17 00:00:00 2001 From: Kichiyaki Date: Wed, 5 May 2021 13:34:09 +0200 Subject: [PATCH] fix two grammar mistakes --- tw/twmodel/helpers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tw/twmodel/helpers.go b/tw/twmodel/helpers.go index a9a1df4..368163a 100644 --- a/tw/twmodel/helpers.go +++ b/tw/twmodel/helpers.go @@ -28,14 +28,14 @@ func appendFilters(q *orm.Query, filtersToAppend ...filterToAppend) (*orm.Query, if f.relationName != "" && tableModel != nil { alias, err := gopgutil.BuildAliasFromRelationName(tableModel, f.relationName) if err != nil { - return q, errors.Wrapf(err, "Couldn't build alias from relation name '%s'", f.relationName) + return q, errors.Wrapf(err, "Couldn't build an alias from the relation name '%s'", f.relationName) } if join := tableModel.GetJoin(f.relationName); join == nil { q = q.Relation(f.relationName + "._") } q, err = f.filter.WhereWithAlias(q, alias) if err != nil { - return q, errors.Wrapf(err, "Couldn't append filter for the relation '%s'", f.relationName) + return q, errors.Wrapf(err, "Couldn't append the filter for the relation '%s'", f.relationName) } continue }