aboutsummaryrefslogtreecommitdiff
path: root/src/nix/cat.cc
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@thalheim.io>2017-07-30 12:27:57 +0100
committerJörg Thalheim <joerg@thalheim.io>2017-07-30 12:32:45 +0100
commit2fd8f8bb99a2832b3684878c020ba47322e79332 (patch)
tree65a667fbc746f4ff8efcaca3c0a58565985f26a5 /src/nix/cat.cc
parentc7654bc491d9ce7c1fbadecd7769418fa79a2060 (diff)
Replace Unicode quotes in user-facing strings by ASCII
Relevant RFC: NixOS/rfcs#4 $ ag -l | xargs sed -i -e "/\"/s/’/'/g;/\"/s/‘/'/g"
Diffstat (limited to 'src/nix/cat.cc')
-rw-r--r--src/nix/cat.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/cat.cc b/src/nix/cat.cc
index 2405a8cb4..a35f640d8 100644
--- a/src/nix/cat.cc
+++ b/src/nix/cat.cc
@@ -13,9 +13,9 @@ struct MixCat : virtual Args
{
auto st = accessor->stat(path);
if (st.type == FSAccessor::Type::tMissing)
- throw Error(format("path ‘%1%’ does not exist") % path);
+ throw Error(format("path '%1%' does not exist") % path);
if (st.type != FSAccessor::Type::tRegular)
- throw Error(format("path ‘%1%’ is not a regular file") % path);
+ throw Error(format("path '%1%' is not a regular file") % path);
std::cout << accessor->readFile(path);
}