lib/zold/patch.rb in zold-0.16.22 vs lib/zold/patch.rb in zold-0.16.23

- old
+ new

@@ -92,23 +92,22 @@ if dup @log.error("Overwriting \"#{dup.to_text}\" with \"#{txn.to_text}\" from #{wallet.mnemo} (same ID/BNF)") next end if !txn.sign.nil? && !txn.sign.empty? - @log.error("RSA signature is redundant at ##{txn.id} of #{wallet.id}: #{txn.to_text}") + @log.error("RSA signature is redundant at ##{txn.id} of #{wallet.id}: \"#{txn.to_text}\"") next end unless wallet.prefix?(txn.prefix) - @log.error("Payment prefix '#{txn.prefix}' doesn't match with the key of #{wallet.id}: #{txn.to_text}") + @log.error("Payment prefix '#{txn.prefix}' doesn't match with the key of #{wallet.id}: \"#{txn.to_text}\"") next end unless @wallets.find(txn.bnf, &:exists?) @log.error("Paying wallet file is absent: #{txn.to_text}") next end unless @wallets.find(txn.bnf) { |p| p.includes_negative?(txn.id, wallet.id) } - @log.error("Paying wallet #{txn.bnf} doesn't have transaction ##{txn.id} \ -among #{payer.txns.count} transactions: #{txn.to_text}") + @log.error("Paying wallet #{txn.bnf} doesn't have this transaction: \"#{txn.to_text}\"") next end end @txns << txn @log.debug("Merged on top, balance is #{@txns.map(&:amount).inject(&:+)}: #{txn.to_text}")