| 102 | } |
| 103 | |
| 104 | bilingual_str PSBTErrorString(PSBTError err) |
| 105 | { |
| 106 | switch (err) { |
| 107 | case PSBTError::MISSING_INPUTS: |
| 108 | return Untranslated("Inputs missing or spent"); |
| 109 | case PSBTError::SIGHASH_MISMATCH: |
| 110 | return Untranslated("Specified sighash value does not match value stored in PSBT"); |
| 111 | case PSBTError::EXTERNAL_SIGNER_NOT_FOUND: |
| 112 | return Untranslated("External signer not found"); |
| 113 | case PSBTError::EXTERNAL_SIGNER_FAILED: |
| 114 | return Untranslated("External signer failed to sign"); |
| 115 | case PSBTError::UNSUPPORTED: |
| 116 | return Untranslated("Signer does not support PSBT"); |
| 117 | case PSBTError::INCOMPLETE: |
| 118 | return Untranslated("Input needs additional signatures or other data"); |
| 119 | case PSBTError::INVALID_TX: |
| 120 | return Untranslated("The transaction cannot be valid"); |
| 121 | case PSBTError::OK: |
| 122 | return Untranslated("No errors"); |
| 123 | } // no default case, so the compiler can warn about missing cases |
| 124 | assert(false); |
| 125 | } |
| 126 | |
| 127 | bilingual_str TransactionErrorString(const TransactionError err) |
| 128 | { |
no test coverage detected