Skip to content

Commit cc2e579

Browse files
committed
fix(sync): Resovle empty response when remote markdown is not exist.
1 parent 3e5bc91 commit cc2e579

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/sync.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,10 @@ export const pruneTouchedFiles = async (vault: Vault, client: RemoteClient, list
435435
item.key,
436436
client,
437437
vault,
438-
);
438+
).catch(err => {
439+
log.info('remote empty ', err);
440+
return null;
441+
})
439442
log.info('remote md: ', remoteMD);
440443
if (!remoteMD) {
441444
return;

0 commit comments

Comments
 (0)