| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
This PR refines error handling around downloading and extracting the CodeQL CLI and introduces a new error category for temporary directory issues.
| File | Description |
|---|---|
| lib/codeql.js | Refactors error handling in the CLI setup to use a dynamic error type based on conditions. |
| src/codeql.ts | Mirrors the same error handling improvements as in lib/codeql.js. |
| lib/cli-errors.js | Introduces a new error category "CouldNotCreateTempDir" to better classify temp directory errors. |
| src/cli-errors.ts | Adds the "CouldNotCreateTempDir" enum member, aligning with the changes in the JS error module. |
Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.
Comments suppressed due to low confidence (4)lib/codeql.js:136
const ErrorClass = e instanceof util.ConfigurationError || (e instanceof Error && e.message.includes("ENOSPC")) // out of disk space
src/codeql.ts:380
const ErrorClass = e instanceof util.ConfigurationError || (e instanceof Error && e.message.includes("ENOSPC")) // out of disk space
lib/cli-errors.js:113
CliConfigErrorCategory["CouldNotCreateTempDir"] = "CouldNotCreateTempDir";
src/cli-errors.ts:122
CouldNotCreateTempDir = "CouldNotCreateTempDir",
Tip: Copilot code review supports C#, Go, Java, JavaScript, Markdown, Python, Ruby and TypeScript, with more languages coming soon. Learn more
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Had an old branch on my machine that adds a couple of configuration errors.
Merge / deployment checklist