Skip to content

Commit 96bb705

Browse files
Make note about NodeJS.ErrnoException
1 parent 1f18cc3 commit 96bb705

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

extensions/ql-vscode/src/pure/files.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,10 @@ export async function* walkDirectory(
109109
}
110110

111111
/**
112-
* Error thrown from methods from the 'fs' module.
112+
* Error thrown from methods from the `fs` module.
113+
*
114+
* In practice, any error matching this is likely an instance of `NodeJS.ErrnoException`.
115+
* If desired in the future, we could model more fields or use `NodeJS.ErrnoException` directly.
113116
*/
114117
export interface IOError {
115118
readonly code: string;

0 commit comments

Comments
 (0)