Skip to content

Commit db458da

Browse files
committed
fix: unused _e
Signed-off-by: joeriddles <joeriddles10@gmail.com>
1 parent c3d33d8 commit db458da

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,13 @@ export default class ExtendedTaskListsPlugin extends Plugin {
167167
let todoFile: TFile;
168168
try {
169169
todoFile = await vault.create(this.settings.todoFilename, "");
170-
} catch (_e) {
170+
} catch (e) {
171171
const todoFileOrNull = vault.getAbstractFileByPath(
172172
this.settings.todoFilename,
173173
);
174174
if (todoFileOrNull == null) {
175175
throw new Error(
176-
`Could not get or create the TODO file: ${this.settings.todoFilename}`,
176+
`Could not get or create the TODO file: ${this.settings.todoFilename}: ${e}`,
177177
);
178178
} else if (!(todoFileOrNull instanceof TFile)) {
179179
throw new Error(

0 commit comments

Comments
 (0)