Skip to content

Commit ee25dac

Browse files
committed
Add Exit Sub/Function/Property above the final error handler
1 parent ef2e488 commit ee25dac

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Tools/VBA-stdError-Wrapper/main.js

Lines changed: 3 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/VBA-stdError-Wrapper/main.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tools/VBA-stdError-Wrapper/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,8 +156,9 @@ function main() {
156156
].join("\r\n");
157157

158158
const injectorFooter = [
159-
" stdErrorWrapper_ErrorOccurred:",
160-
" Call Err_Raise(Err.Number, Err.Source, Err.Description)",
159+
" Exit " + type,
160+
" stdErrorWrapper_ErrorOccurred:",
161+
" Call Err_Raise(Err.Number, Err.Source, Err.Description)",
161162
" End With"
162163
].join("\r\n");
163164

0 commit comments

Comments
 (0)