Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit c2674d1

Browse files
author
Ken A. Redergård
authored
Merge pull request #105 from NordicSemiconductor/fix/state-check-and-cleanup-transports
Write to cerr before terminating
2 parents 253bd54 + f566ce3 commit c2674d1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/common/transport/h5_transport.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
| 15 | SLEEP MESSAGE | 0x07 0x78
5050
*/
5151

52+
#include <iostream>
53+
5254
#include "h5_transport.h"
5355
#include "sd_rpc_types.h"
5456
#include "nrf_error.h"
@@ -655,6 +657,7 @@ void H5Transport::startStateMachine()
655657
else
656658
{
657659
// Terminate if the state machine already exists, this should not happen.
660+
std::cerr << __FILE__ << ":" << __LINE__ << " stateMachineThread exists, this should not happen. Terminating." << std::endl;
658661
std::terminate();
659662
}
660663
}

0 commit comments

Comments
 (0)