Skip to content

Commit 7c0ac28

Browse files
dodok8dahlia
andauthored
refactor: change no handle error logic
Co-authored-by: Hong Minhee (洪 民憙) <[email protected]>
1 parent ac9b6bc commit 7c0ac28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/botkit/src/pages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ app.post("/follow", async (c) => {
443443

444444
try {
445445
if (!followerHandle) {
446-
throw new Error("No followerHandle!");
446+
return c.json({ error: "Follower handle is required." }, 400);
447447
}
448448

449449
if (followerHandle.startsWith("@")) {

0 commit comments

Comments
 (0)