fix issue where client side vali
dation not happening show error message from server
This commit is contained in:
1 parent
420839bcf5
commit
19ef588fa5
3 files changed
+40
-42
No files matched your search
@@ -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({});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user