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 1091cd1 commit c69af93Copy full SHA for c69af93
1 file changed
cli/test/solana.sh
@@ -236,7 +236,18 @@ else
236
fi
237
ntt status || true
238
239
-ntt push --payer "$keypair" --yes || true
+push_exit=0
240
+push_output=$(ntt push --payer "$keypair" --yes 2>&1) || push_exit=$?
241
+echo "$push_output"
242
+if [ "$push_exit" -ne 0 ]; then
243
+ if echo "$push_output" | grep -q "Push aborted due to registration errors" \
244
+ && echo "$push_output" | grep -q "AccountNotInitialized"; then
245
+ echo "ntt push failed as expected (Wormhole program not loaded in the local validator); continuing."
246
+ else
247
+ echo "ntt push failed for an unexpected reason (exit $push_exit)" >&2
248
+ exit "$push_exit"
249
+ fi
250
+fi
251
252
cat "$DEPLOYMENT_FILE"
253
0 commit comments