examples, lte, tc, wifi: Use NS_ABORT_MSG() macro instead of exit(1)
Replace uses of exit(1)
function with the NS_ABORT_MSG()
macro.
The code is equivalent, since this macro is enabled unconditionally in all builds. However, NS_ABORT_MSG()
writes the message to std::cerr
instead of std::cout
.
Edited by Eduardo Almeida