We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a853f1b commit 55931afCopy full SHA for 55931af
1 file changed
e2e/kind/scripts/lib.sh
@@ -15,8 +15,9 @@ fi
15
# ── Logging ───────────────────────────────────────────────────────────────────
16
log_info() { echo -e "\033[0;34m[INFO]\033[0m $*"; }
17
log_success() { echo -e "\033[0;32m[PASS]\033[0m $*"; }
18
-log_error() { echo -e "\033[0;31m[FAIL]\033[0m $*"; }
19
-log_warn() { echo -e "\033[0;33m[WARN]\033[0m $*"; }
+# Errors/warnings to stderr: else `x=$(fn)` swallows them into x (hidden failure + polluted value).
+log_error() { echo -e "\033[0;31m[FAIL]\033[0m $*" >&2; }
20
+log_warn() { echo -e "\033[0;33m[WARN]\033[0m $*" >&2; }
21
22
# ── Chain queries ─────────────────────────────────────────────────────────────
23
0 commit comments