techdocs: backend responds with an error if publisher type is not supported

Signed-off-by: Himanshu Mishra <himanshu@orkohunter.net>
This commit is contained in:
Himanshu Mishra
2021-03-12 11:40:12 +01:00
parent 2dd8cef6fc
commit 8fdb4d8e00
@@ -186,6 +186,10 @@ export async function createRouter({
}
break;
default:
res.status(400).json({
error: `Publisher type ${publisherType} is not supported by techdocs-backend docs builder.`,
});
break;
}
}