Skip to content

Commit

Permalink
merge bitcoin#28253: display abrupt shutdown errors in console output
Browse files Browse the repository at this point in the history
  • Loading branch information
kwvg committed Jan 14, 2025
1 parent 4965f0a commit ad7769b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/functional/test_framework/test_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,8 +259,13 @@ def wait_for_rpc_connection(self):
poll_per_s = 4
for _ in range(poll_per_s * self.rpc_timeout):
if self.process.poll() is not None:
# Attach abrupt shutdown error/s to the exception message
self.stderr.seek(0)
str_error = ''.join(line.decode('utf-8') for line in self.stderr)
str_error += "************************\n" if str_error else ''

raise FailedToStartError(self._node_msg(
'dashd exited with status {} during initialization'.format(self.process.returncode)))
f'dashd exited with status {self.process.returncode} during initialization. {str_error}'))
try:
rpc = get_rpc_proxy(
rpc_url(self.datadir, self.index, self.chain, self.rpchost),
Expand Down

0 comments on commit ad7769b

Please sign in to comment.