Skip to content

Commit

Permalink
fix: variable error accidentally shadowed
Browse files Browse the repository at this point in the history
  • Loading branch information
FelisDiligens committed May 10, 2024
1 parent b4ea749 commit 60562bc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cmPlugin/cmUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -302,14 +302,14 @@ export async function replaceRange(cm, context, getNewRange: Function, done: Fun
if (done)
done({ row: selection.row, column: selection.column });
}
catch (error) {
catch (e) {
await context.postMessage({
name: 'alert',
text: error.toString(),
text: e.toString(),
title: "Error"
});
if (error)
error(error);
error(e);
}
}
else {
Expand Down

0 comments on commit 60562bc

Please sign in to comment.