Skip to content
This repository was archived by the owner on Feb 27, 2024. It is now read-only.

Commit 7ac6155

Browse files
committed
Correct error message
1 parent ad55ba3 commit 7ac6155

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pages/api/wp/postComment.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export default async function postComment(req, res) {
3333
res
3434
.status(error?.status || 500)
3535
.end(
36-
error?.message || 'An error occurred while attempted to load more posts'
36+
error?.message ||
37+
'An error occurred while attempted to post the comment'
3738
)
3839
}
3940
}

0 commit comments

Comments
 (0)