From 89271f9517e808bab028e19579bf0e584787f9aa Mon Sep 17 00:00:00 2001 From: MoneroOcean Date: Tue, 2 Apr 2019 21:29:46 -0700 Subject: [PATCH] Better error messages --- src/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.cc b/src/main.cc index cefd671..64aabf9 100644 --- a/src/main.cc +++ b/src/main.cc @@ -70,7 +70,7 @@ static bool fillExtraMM(cryptonote::block& block1, const cryptonote::block& bloc switch (extra[pos]) { case TX_EXTRA_TAG_PUBKEY: pos += 1 + sizeof(crypto::public_key); break; default: { - fprintf(stderr, "Wrong extra tag found: %x\n", extra[pos]); + fprintf(stderr, "Not supported extra tag found: %x\n", extra[pos]); return false; } } @@ -85,7 +85,7 @@ static bool fillExtraMM(cryptonote::block& block1, const cryptonote::block& bloc const int new_extra_nonce_size = extra_nonce_size - MM_NONCE_SIZE; if (new_extra_nonce_size < 0) { - fprintf(stderr, "Too small extra size\n"); + fprintf(stderr, "Too small extra size, can't fit MM tag here\n"); return false; }