Skip to content

Commit 2e7128a

Browse files
Comments
1 parent 6adabed commit 2e7128a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/main.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default class AnkiLink extends Plugin {
7070
);
7171
} catch (error) {
7272
console.error(error);
73+
// TODO: Provide the user with a more helpful error message.
7374
new Notice("Failed to sync flashcards. Check console for details.");
7475
}
7576
}

src/syncUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function parseDocument(lines: string[]): ParsedNoteData[] {
154154
function parseBody(lines: string[]) {
155155
const bodyLines: string[] = [];
156156
for (const line of lines) {
157-
// Stop when we reach the next flashcard preamble.
157+
// Stop early if we reach another flashcard preamble.
158158
if (parsePreamble(line)) {
159159
return bodyLines;
160160
}

0 commit comments

Comments
 (0)