Properly log errors

This commit is contained in:
schroda
2025-03-03 23:59:03 +01:00
parent 1d9c3738fd
commit 6ebf13d328
3 changed files with 3 additions and 3 deletions

View File

@@ -321,7 +321,7 @@ const commitMigratedMetadata = (
defaultPromiseErrorHandler(
`MetadataMigrations#commitMigrateMetadata(${type}, ${(metadataHolder as { id: any })?.id})`,
);
)(e);
}
})();
});

View File

@@ -246,7 +246,7 @@ export class ReaderControls {
getReaderOpenChapterResumeMode(isSpecificChapterMode, isPreviousChapter),
);
} catch (error) {
defaultPromiseErrorHandler('ReaderControls#useOpenChapter#doOpenChapter: ');
defaultPromiseErrorHandler('ReaderControls#useOpenChapter#doOpenChapter:')(error);
}
};

View File

@@ -116,7 +116,7 @@ export class ReaderService {
try {
await Chapters.download(chapterIdsForDownloadAhead);
} catch (e) {
defaultPromiseErrorHandler('ReaderService::useUpdateCurrentPageIndex: download ahead');
defaultPromiseErrorHandler('ReaderService::useUpdateCurrentPageIndex: download ahead')(e);
}
});
}