Commit 1a8733ec authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent f2aabf29
......@@ -239,7 +239,7 @@ error Contextf::operator() (error err) const {
if (err == nil)
return nil;
return fmt::errorf("%s: %s", v(c.errctx), v(err));
return fmt::errorf("%s: %w", v(c.errctx), err);
}
} // xerr::
......
......@@ -23,7 +23,7 @@
#define _NXD_WCFS_MISC_H_
// XXX hack: C++ does not have __builtin_types_compatible_p, but CCAN configure
// thinks it does because CCAN is configired via C, not C++.
// thinks it does because CCAN is configured via C, not C++.
#include <config.h>
#undef HAVE_BUILTIN_TYPES_COMPATIBLE_P
#define HAVE_BUILTIN_TYPES_COMPATIBLE_P 0
......@@ -153,7 +153,7 @@ namespace xerr {
//
// Usage is a bit different(*) compared to Go:
//
// func dosSomething(arg) {
// func doSomething(arg) {
// xerr.Contextf E("doing something %s", v(arg));
// ...
// return E(err);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment