Refactoring: More specific error

This commit is contained in:
looskie committed 2021-06-26 13:06:46 -04:00
1 parent c92b60dd87
commit b1c0da1ac0
1 file changed
+1 -1
+1 -1
View File
@@ -24,7 +24,7 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
if (!isSnowflake(userId))
return res.send({
error: `Specify a valid Discord user ID! If everything looks correct and this still occurs, please contact @cnraddd on Twitter.`,
error: `That is not a valid snowflake ID!`,
});
try {