Skip to content

Commit 5ec7440

Browse files
committed
fix: enable to update empty body
1 parent ba43509 commit 5ec7440

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/article.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ export class Article {
100100
const articles: Record<number, string> = await this.articles;
101101
remoteArticleBodyMarkdown = articles[this.articleConfig.id];
102102

103-
if (!remoteArticleBodyMarkdown) {
104-
throw new Error();
103+
if (remoteArticleBodyMarkdown === null) {
104+
throw new Error(`Remote article body with id ${this.articleConfig.id} has not been found`);
105105
}
106106
} catch (error) {
107107
return {

0 commit comments

Comments
 (0)