#include <sstream>
-lttng::cli::no_default_session_error::no_default_session_error(const char *file_name,
- const char *function_name,
- unsigned int line_number) :
- runtime_error(lttng::format("No default session found in `{}/.lttngrc`",
+lttng::cli::no_default_session_error::no_default_session_error(const lttng::source_location &location) :
+ runtime_error(fmt::format("No default session found in `{}/.lttngrc`",
utils_get_home_dir() ?: "LTTNG_HOME"),
- file_name,
- function_name,
- line_number)
+ location)
{
}