Some notational convenience for formatting strings
We can now write throw Error("file '%s' not found", path); instead of throw Error(format("file '%s' not found") % path); and similarly printError("file '%s' not found", path); instead of printMsg(lvlError, format("file '%s' not found") % path);
Showing
- src/libstore/build.cc 3 additions, 3 deletionssrc/libstore/build.cc
- src/libstore/remote-store.cc 1 addition, 1 deletionsrc/libstore/remote-store.cc
- src/libutil/args.hh 1 addition, 1 deletionsrc/libutil/args.hh
- src/libutil/logging.hh 8 additions, 3 deletionssrc/libutil/logging.hh
- src/libutil/types.hh 65 additions, 4 deletionssrc/libutil/types.hh
- src/libutil/util.cc 3 additions, 10 deletionssrc/libutil/util.cc
Loading
Please register or sign in to comment