projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Cleanup: rotation-thread: enforce conding standard following fix
[lttng-tools.git]
/
src
/
common
/
exception.cpp
diff --git
a/src/common/exception.cpp
b/src/common/exception.cpp
index 05c30fc6d37d198025d4c8d15433ad269bf96d16..028d253f2d885a6c9d9c29a4dc8c875a40b698f2 100644
(file)
--- a/
src/common/exception.cpp
+++ b/
src/common/exception.cpp
@@
-24,12
+24,15
@@
format_throw_location(const char *file_name, const char *function_name, unsigned
}
} /* namespace */
}
} /* namespace */
-lttng::ctl::error::error(lttng_error_code error_code,
+lttng::ctl::error::error(const std::string& msg,
+ lttng_error_code error_code,
const char *file_name,
const char *function_name,
unsigned int line_number) :
const char *file_name,
const char *function_name,
unsigned int line_number) :
- runtime_error(
- std::string(error_get_str(error_code)), file_name, function_name, line_number),
+ runtime_error(msg + ": " + std::string(error_get_str(error_code)),
+ file_name,
+ function_name,
+ line_number),
_error_code{ error_code }
{
}
_error_code{ error_code }
{
}
This page took
0.023862 seconds
and
4
git commands to generate.