catch errors

main
Lee Hanken 2022-01-30 21:20:23 +00:00
parent 0ab94c807e
commit 9290e3c853
1 changed files with 3 additions and 3 deletions

View File

@ -44,14 +44,14 @@ app.post('/', function(req, res) {
if (!html) {
res.status(400).send("Please provide a POST parameter called html");
} else {
//try {
try {
let document = new JSDOM(html);
let markdown = process_dom(url, document, res);
send_headers(res);
res.send(markdown);
/*} catch (error) {
} catch (error) {
res.status(400).send("Could not parse that document");
}*/
}
}
});