diff options
| author | 2023-06-04 18:55:30 +0200 | |
|---|---|---|
| committer | 2023-06-04 18:55:30 +0200 | |
| commit | 97bc2e713a6e5b2c25869b93f5232560d7110170 (patch) | |
| tree | 62d76de2c489331413cd2d53a99e0daeb762efaa /internal/timeline/prepare.go | |
| parent | [docs] Add Repology stats (#1859) (diff) | |
| download | gotosocial-97bc2e713a6e5b2c25869b93f5232560d7110170.tar.xz | |
[chore] tidy + test timelines a bit better (#1865)
* [chore] tidy + test timelines a bit better
* thanks linter
Diffstat (limited to 'internal/timeline/prepare.go')
| -rw-r--r-- | internal/timeline/prepare.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/timeline/prepare.go b/internal/timeline/prepare.go index 8fbcb15a7..81d0ddc38 100644 --- a/internal/timeline/prepare.go +++ b/internal/timeline/prepare.go @@ -21,10 +21,10 @@ import ( "container/list" "context" "errors" - "fmt" "codeberg.org/gruf/go-kv" "github.com/superseriousbusiness/gotosocial/internal/db" + "github.com/superseriousbusiness/gotosocial/internal/gtserror" "github.com/superseriousbusiness/gotosocial/internal/log" ) @@ -129,7 +129,7 @@ func (t *timeline) prepareXBetweenIDs(ctx context.Context, amount int, behindID t.items.data.Remove(e) } // We've got a proper db error. - return fmt.Errorf("prepareXBetweenIDs: db error while trying to prepare %s: %w", entry.itemID, err) + return gtserror.Newf("db error while trying to prepare %s: %w", entry.itemID, err) } entry.prepared = prepared } |
