Fix error message

This commit is contained in:
ekzyis 2024-10-16 03:13:55 +02:00
parent dbf10e6980
commit 506cb7f6f1
1 changed files with 1 additions and 1 deletions

View File

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