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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user