fix: error handling

This commit is contained in:
Marvin9
2020-10-28 10:54:38 +05:30
parent c30cca19de
commit 097e3d222a
@@ -115,10 +115,8 @@ export async function createRouter(
let template: TemplateEntityV1alpha1;
try {
template = await entityClient.findTemplate(templateName);
} catch (e) {
// help me here
res.status(400).json({ errors: e });
return;
} catch (err) {
throw err;
}
const validationResult: ValidatorResult = validate(