Refactoring: More specific error

This commit is contained in:
looskie
2021-06-26 13:06:46 -04:00
parent c92b60dd87
commit b1c0da1ac0

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 {