There was an error while loading. Please reload this page.
1 parent 00f0277 commit 14b12c0Copy full SHA for 14b12c0
1 file changed
tests/plugins/context-mode/test-nested-mcp-smoke.sh
@@ -1,5 +1,14 @@
1
#!/usr/bin/env bash
2
-set -euo pipefail
+set -Eeuo pipefail
3
+
4
+report_error() {
5
+ local status=$? line=$1 command=$2
6
+ printf 'nested MCP smoke failed at line %s (exit %s): %s\n' \
7
+ "$line" "$status" "$command" >&2
8
+ return "$status"
9
+}
10
11
+trap 'report_error "$LINENO" "$BASH_COMMAND"' ERR
12
13
root=$(CDPATH= cd -- "$(dirname -- "$0")/../../.." && pwd)
14
tmp=$(mktemp -d "${TMPDIR:-/tmp}/context-mode-nested-smoke.XXXXXX")
0 commit comments