mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 02:11:24 +02:00
node: Make translations of fatal errors consistent
The extra `bilingual_str` argument of the fatal error notifications and `node::AbortNode()` is often unused and when used usually contains the same string as the message argument. It also seems to be confusing, since it is not consistently used for errors requiring user action. For example some assumeutxo fatal errors require the user to do something, but are not translated. So simplify the fatal error and abort node interfaces by only passing a translated string. This slightly changes the fatal errors displayed to the user. Also de-duplicate the abort error log since it is repeated in noui.cpp.
This commit is contained in:
@ -134,7 +134,7 @@ class AssumeutxoTest(BitcoinTestFramework):
|
||||
with self.nodes[0].assert_debug_log([log_msg]):
|
||||
self.nodes[0].assert_start_raises_init_error(expected_msg=error_msg)
|
||||
|
||||
expected_error_msg = f"Error: A fatal internal error occurred, see debug.log for details"
|
||||
expected_error_msg = f"Error: A fatal internal error occurred, see debug.log for details: Assumeutxo data not found for the given blockhash '7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a7a'."
|
||||
error_details = f"Assumeutxo data not found for the given blockhash"
|
||||
expected_error(log_msg=error_details, error_msg=expected_error_msg)
|
||||
|
||||
|
Reference in New Issue
Block a user