Skip to content

Commit 8bed040

Browse files
committed
Use getErrorMessage for extractor config read errors
1 parent 5c00421 commit 8bed040

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

‎lib/entry-points.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎src/languages/source-files.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import * as path from "path";
33

44
import * as yaml from "js-yaml";
55

6+
import { getErrorMessage } from "../errors";
67
import type { Logger } from "../logging";
78

89
/** The subset of an extractor's `codeql-extractor.yml` file that we read. */
@@ -38,7 +39,7 @@ export function getExtractorFileExtensions(
3839
) as ExtractorFileTypesConfig | undefined;
3940
} catch (e) {
4041
logger.debug(
41-
`Could not read file types from ${extractorConfigPath}: ${String(e)}`,
42+
`Could not read file types from ${extractorConfigPath}: ${getErrorMessage(e)}`,
4243
);
4344
return undefined;
4445
}

0 commit comments

Comments
 (0)