From 8e76c9ab57de618e40149a2475e83592f7cbd3b8 Mon Sep 17 00:00:00 2001 From: nicole mikołajczyk Date: Thu, 14 Aug 2025 12:17:42 +0200 Subject: [chore] return correct error message (#4377) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4377 Co-authored-by: nicole mikołajczyk Co-committed-by: nicole mikołajczyk --- internal/api/client/scheduledstatuses/scheduledstatusput.go | 2 +- internal/db/bundb/scheduledstatus.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/api/client/scheduledstatuses/scheduledstatusput.go b/internal/api/client/scheduledstatuses/scheduledstatusput.go index f037716e7..7b458a8d2 100644 --- a/internal/api/client/scheduledstatuses/scheduledstatusput.go +++ b/internal/api/client/scheduledstatuses/scheduledstatusput.go @@ -30,7 +30,7 @@ import ( // ScheduledStatusPUTHandler swagger:operation PUT /api/v1/scheduled_statuses/{id} updateScheduledStatus // -// Update a scheduled status's publishing date +// Update a scheduled status's publishing date. // // --- // tags: diff --git a/internal/db/bundb/scheduledstatus.go b/internal/db/bundb/scheduledstatus.go index 44cbd0f59..e1e374d4e 100644 --- a/internal/db/bundb/scheduledstatus.go +++ b/internal/db/bundb/scheduledstatus.go @@ -272,7 +272,7 @@ func (s *scheduledStatusDB) PutScheduledStatus(ctx context.Context, status *gtsm if _, err := tx.NewInsert(). Model(status). Exec(ctx); err != nil { - return gtserror.Newf("error selecting boosted status: %w", err) + return gtserror.Newf("error inserting scheduled status: %w", err) } // change the scheduled status ID of the -- cgit v1.3