Exception: make source location print-out optional
[lttng-tools.git] / src / bin / lttng / exception.cpp
CommitLineData
e1b89bf0
JG
1/*
2 * Copyright (C) 2024 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8#include "exception.hpp"
9
10#include <common/format.hpp>
11#include <common/utils.hpp>
12
13#include <sstream>
14
9f4d1ef3
JG
15lttng::cli::no_default_session_error::no_default_session_error(const lttng::source_location &location) :
16 runtime_error(fmt::format("No default session found in `{}/.lttngrc`",
e1b89bf0 17 utils_get_home_dir() ?: "LTTNG_HOME"),
9f4d1ef3 18 location)
e1b89bf0
JG
19{
20}
This page took 0.023431 seconds and 4 git commands to generate.