fix issue where client side vali

dation not happening

show error message from server
This commit is contained in:
femyeda committed 2021-08-15 09:22:05 -05:00
1 parent 420839bcf5
commit 19ef588fa5
3 files changed
+40 -42

No files matched your search

+1 -3
View File
@@ -69,10 +69,8 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
}
} catch (reason) {
logger.error("Could not add this caldav account", reason);
return res.status(200).json({ message: "Could not add this caldav account" });
return res.status(500).json({ message: "Could not add this caldav account" });
}
// TODO VALIDATE URL
// TODO VALIDATE CONNECTION IS POSSIBLE
return res.status(200).json({});
}