Update server.js
Browse files
server.js
CHANGED
@@ -26,7 +26,7 @@ class WebsiteParser {
|
|
26 |
const article = reader.parse();
|
27 |
|
28 |
if (!article) {
|
29 |
-
throw new Error('
|
30 |
}
|
31 |
|
32 |
const markdown = turndownService.turndown(article.content);
|
|
|
26 |
const article = reader.parse();
|
27 |
|
28 |
if (!article) {
|
29 |
+
throw new Error('не удалось спарсить страницу');
|
30 |
}
|
31 |
|
32 |
const markdown = turndownService.turndown(article.content);
|