Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): detect PowerShell cmdlet errors in work log rows #5726

Mergedmyacoub91(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/5726/headmerged by juliusmarminge View on GitHub

Showing 1 changed file with 2 additions and 0 deletions.

x
0 of 1 viewed, 1 left
2 additions and 0 deletionsapps/mobile/src/lib/threadActivity.tsModified
View file
@@ -554,6 +554,8 @@
normalized.includes("command not found") ||
(normalized.includes("cannot find path") && normalized.includes("because it does not exist")) ||
(normalized.includes("is not recognized") && normalized.includes("the term '")) ||
+ normalized.includes("is not recognized as the name of a cmdlet") ||
+ normalized.includes("a parameter cannot be found that matches parameter name") ||
/<exited with exit code\s+[1-9]\d*\s*>/i.test(text) ||
/exit(?:ed)? with exit code\s+[1-9]\d*/i.test(text) ||
/exit code\s*[:\s]\s*[1-9]\d*\b/i.test(text)