mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 15:56:18 +02:00
Formatting
This commit is contained in:
parent
5257a2559e
commit
27ca87c46a
3 changed files with 32 additions and 28 deletions
|
@ -107,7 +107,7 @@ struct Trace {
|
||||||
struct ErrorInfo {
|
struct ErrorInfo {
|
||||||
Verbosity level;
|
Verbosity level;
|
||||||
string name;
|
string name;
|
||||||
string description;
|
string description; // FIXME: remove? it seems to be barely used
|
||||||
std::optional<hintformat> hint;
|
std::optional<hintformat> hint;
|
||||||
std::optional<ErrPos> errPos;
|
std::optional<ErrPos> errPos;
|
||||||
std::list<Trace> traces;
|
std::list<Trace> traces;
|
||||||
|
@ -169,7 +169,7 @@ public:
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const string & msg() const { return calcWhat(); }
|
const string & msg() const { return calcWhat(); }
|
||||||
const ErrorInfo & info() { calcWhat(); return err; }
|
const ErrorInfo & info() const { calcWhat(); return err; }
|
||||||
|
|
||||||
template<typename... Args>
|
template<typename... Args>
|
||||||
BaseError & addTrace(std::optional<ErrPos> e, const string &fs, const Args & ... args)
|
BaseError & addTrace(std::optional<ErrPos> e, const string &fs, const Args & ... args)
|
||||||
|
|
|
@ -112,6 +112,10 @@ public:
|
||||||
: fmt(hf.fmt)
|
: fmt(hf.fmt)
|
||||||
{ }
|
{ }
|
||||||
|
|
||||||
|
hintformat(format && fmt)
|
||||||
|
: fmt(std::move(fmt))
|
||||||
|
{ }
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
hintformat & operator%(const T & value)
|
hintformat & operator%(const T & value)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue