Fix error message
This commit is contained in:
parent
dbf10e6980
commit
506cb7f6f1
2
main.go
2
main.go
|
@ -238,7 +238,7 @@ func createComment(parentId int, text string) (*sn.Item, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = db.InsertItem(comment); err != nil {
|
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
|
return comment, nil
|
||||||
|
|
Loading…
Reference in New Issue