From f566ce385ffbdd149274ae247f42447b5297490b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ken=20A=2E=20Rederg=C3=A5rd?= Date: Tue, 22 May 2018 15:13:30 +0200 Subject: [PATCH] write to cerr before terminating --- src/common/transport/h5_transport.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/common/transport/h5_transport.cpp b/src/common/transport/h5_transport.cpp index 197e8db05..60e2d9f67 100755 --- a/src/common/transport/h5_transport.cpp +++ b/src/common/transport/h5_transport.cpp @@ -49,6 +49,8 @@ | 15 | SLEEP MESSAGE | 0x07 0x78 */ +#include + #include "h5_transport.h" #include "sd_rpc_types.h" #include "nrf_error.h" @@ -655,6 +657,7 @@ void H5Transport::startStateMachine() else { // Terminate if the state machine already exists, this should not happen. + std::cerr << __FILE__ << ":" << __LINE__ << " stateMachineThread exists, this should not happen. Terminating." << std::endl; std::terminate(); } }