vanguard-cli 3.1.18 → 3.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/scan.js +4 -2
- package/package.json +1 -1
package/lib/commands/scan.js
CHANGED
|
@@ -42,7 +42,8 @@ export async function handlePull(cmdOptions, programOptions) {
|
|
|
42
42
|
analysis = await scanner.scan('git_diff', diff, spinner);
|
|
43
43
|
} catch (err) {
|
|
44
44
|
if (err.message === 'CRITICAL_AUTH_FAILURE') {
|
|
45
|
-
process.
|
|
45
|
+
process.exitCode = 1;
|
|
46
|
+
return;
|
|
46
47
|
}
|
|
47
48
|
let msg = err.message;
|
|
48
49
|
if (msg.includes('[GoogleGenerativeAI Error]')) {
|
|
@@ -136,7 +137,8 @@ export async function handleClone(url, directory, programOptions) {
|
|
|
136
137
|
} catch (err) {
|
|
137
138
|
if (err.message === 'CRITICAL_AUTH_FAILURE') {
|
|
138
139
|
await cleanupSandbox(tempPath);
|
|
139
|
-
process.
|
|
140
|
+
process.exitCode = 1;
|
|
141
|
+
return;
|
|
140
142
|
}
|
|
141
143
|
let msg = err.message;
|
|
142
144
|
// Clean up Google's noisy JSON error if it slipped through
|