Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
grahamc committed May 6, 2024
1 parent b3a6bdf commit dacc9e8
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
8 changes: 8 additions & 0 deletions dist/index.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 8 additions & 6 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,14 @@ export class IdsToolbox {
this.recordEvent(`begin_${this.executionPhase}`);
}

// Attach a file to the diagnostics data in error conditions.
//
// The file at `location` doesn't need to exist when stapleFile is called.
//
// If the file doesn't exist or is unreadable when trying to staple the attachments, the JS error will be stored in a context value at `staple_failure_{name}`.
// If the file is readable, the file's contents will be stored in a context value at `staple_value_{name}`.
/**
* Attach a file to the diagnostics data in error conditions.
*
* The file at `location` doesn't need to exist when stapleFile is called.
*
* If the file doesn't exist or is unreadable when trying to staple the attachments, the JS error will be stored in a context value at `staple_failure_{name}`.
* If the file is readable, the file's contents will be stored in a context value at `staple_value_{name}`.
*/
stapleFile(name: string, location: string): void {
this.exceptionAttachments.set(name, location);
}
Expand Down

0 comments on commit dacc9e8

Please sign in to comment.