Skip to content

Commit c3b6d69

Browse files
Merge pull request #44 from noxasaxon/filter-deployment-warnings
ignore warnings to stderr that do not include error
2 parents 03b1544 + cb33080 commit c3b6d69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@ class PkgPyFuncs {
124124

125125
if(countErrorNewLines < 2 && errorText.toLowerCase().includes('git clone')){
126126
// Ignore false positive due to pip git clone printing to stderr
127+
} else if(errorText.toLowerCase().includes('warning') && !errorText.toLowerCase().includes('error')){
128+
// Ignore warnings
127129
} else if(errorText.toLowerCase().includes('docker')){
128130
console.log('stdout:', out)
129131
this.error("Docker Error Detected")
130-
131132
} else {
132133
// Error is not false positive,
133134
console.log('___ERROR DETECTED, BEGIN STDOUT____\n', out)

0 commit comments

Comments
 (0)