From ffe27e251f7bb448950917186f5705f9f0e75f81 Mon Sep 17 00:00:00 2001 From: Serg Pokrovskyy Date: Thu, 21 Nov 2024 03:01:31 -0400 Subject: [PATCH] Fixed error message when using sat or satpoint with batch inscribe (#4054) --- src/wallet/batch/file.rs | 2 +- tests/wallet/batch_command.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wallet/batch/file.rs b/src/wallet/batch/file.rs index 1bbfda4e52..8f8056f5f4 100644 --- a/src/wallet/batch/file.rs +++ b/src/wallet/batch/file.rs @@ -37,7 +37,7 @@ impl File { if sat_or_satpoint { ensure!( batchfile.mode == Mode::SameSat, - "neither `sat` nor `satpoint` can be set in `same-sat` mode", + "`sat` or `satpoint` can only be set in `same-sat` mode", ); } diff --git a/tests/wallet/batch_command.rs b/tests/wallet/batch_command.rs index 38904db6d9..d4fa0e1d76 100644 --- a/tests/wallet/batch_command.rs +++ b/tests/wallet/batch_command.rs @@ -983,7 +983,7 @@ fn batch_inscribe_with_sat_arg_fails_if_wrong_mode() { .core(&core) .ord(&ord) .expected_exit_code(1) - .expected_stderr("error: neither `sat` nor `satpoint` can be set in `same-sat` mode\n") + .expected_stderr("error: `sat` or `satpoint` can only be set in `same-sat` mode\n") .run_and_extract_stdout(); }