We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba43509 commit 5ec7440Copy full SHA for 5ec7440
src/article.ts
@@ -100,8 +100,8 @@ export class Article {
100
const articles: Record<number, string> = await this.articles;
101
remoteArticleBodyMarkdown = articles[this.articleConfig.id];
102
103
- if (!remoteArticleBodyMarkdown) {
104
- throw new Error();
+ if (remoteArticleBodyMarkdown === null) {
+ throw new Error(`Remote article body with id ${this.articleConfig.id} has not been found`);
105
}
106
} catch (error) {
107
return {
0 commit comments