From 506cb7f6f126bb77a2b01f1c4e79c67cd64e810d Mon Sep 17 00:00:00 2001 From: ekzyis Date: Wed, 16 Oct 2024 03:13:55 +0200 Subject: [PATCH] Fix error message --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a0af350..4cc20b7 100644 --- a/main.go +++ b/main.go @@ -238,7 +238,7 @@ func createComment(parentId int, text string) (*sn.Item, error) { } if err = db.InsertItem(comment); err != nil { - return nil, fmt.Errorf("failed to insert item %d into db: %v\n", err, comment.Id) + return nil, fmt.Errorf("failed to insert item %d into db: %v\n", comment.Id, err) } return comment, nil