citrun

watch C/C++ source code execute
Log | Files | Refs | LICENSE

commit 881fd68278b78fb1775729d7a8b153a586c90440
parent 2190069e4dbf2398b018e93efbfeca09d86a56de
Author: Kyle Milz <kyle@0x30.net>
Date:   Tue,  2 Aug 2016 23:33:41 -0600

src: show warning when log file open is bad

Diffstat:
Msrc/inst_main.cc | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/inst_main.cc b/src/inst_main.cc @@ -73,6 +73,9 @@ CitrunInst::CitrunInst(int argc, char *argv[]) : m_pid(getpid()), m_pfx(std::to_string(m_pid) + ": ") { + if (m_ec.value()) + warnx("citrun.log: %s", m_ec.message().c_str()); + struct utsname utsname; if (uname(&utsname) == -1) err(1, "uname");