diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2015-06-01 21:15:59 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2015-06-01 21:15:59 +0100 |
| commit | 8f6fc6a0f3bad813f6f7a6ca5cd8ae56afd31cc3 (patch) | |
| tree | e7611265f4e905330910ebdc3d4f1c317b4d4f67 /src/normal.cc | |
| parent | f19bb4fe6d1de14f9539768ad9a67391fc52ed87 (diff) | |
Port even more code to use format function
Diffstat (limited to 'src/normal.cc')
| -rw-r--r-- | src/normal.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.cc b/src/normal.cc index ef4231bf..f2b983df 100644 --- a/src/normal.cc +++ b/src/normal.cc @@ -211,11 +211,11 @@ void goto_commands(Context& context, NormalParams params) String path = find_file(filename, paths); if (path.empty()) - throw runtime_error("unable to find file '" + filename + "'"); + throw runtime_error(format("unable to find file '{}'", filename)); Buffer* buffer = create_buffer_from_file(path); if (buffer == nullptr) - throw runtime_error("unable to open file '" + path + "'"); + throw runtime_error(format("unable to open file '{}'", path)); if (buffer != &context.buffer()) { |
