summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:56:40 +0000
committerJohn Ericson <John.Ericson@Obsidian.Systems>2020-08-05 14:56:40 +0000
commit0559ff3d8bcfc21fea9cff07dbd6108cfdc97b85 (patch)
tree71d0a3daba3eab19db5599c9f2ac12310cc293ae /src
parent92ad550e96935d21fb24938305f5a3a7238e540e (diff)
parent790b694be71c102ca9c67a85a3e9fd6f076811b1 (diff)
Merge branch 'master' of github.com:NixOS/nix into derivation-primop-floating-output
Diffstat (limited to 'src')
-rw-r--r--src/libstore/content-address.cc6
-rw-r--r--src/libstore/local-store.cc2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc
index 38acaa4bf..0885c3d0e 100644
--- a/src/libstore/content-address.cc
+++ b/src/libstore/content-address.cc
@@ -44,14 +44,14 @@ ContentAddress parseContentAddress(std::string_view rawCa) {
{
auto optPrefix = splitPrefixTo(rest, ':');
if (!optPrefix)
- throw UsageError("not a content address because it is not in the form \"<prefix>:<rest>\": %s", rawCa);
+ throw UsageError("not a content address because it is not in the form '<prefix>:<rest>': %s", rawCa);
prefix = *optPrefix;
}
auto parseHashType_ = [&](){
auto hashTypeRaw = splitPrefixTo(rest, ':');
if (!hashTypeRaw)
- throw UsageError("content address hash must be in form \"<algo>:<hash>\", but found: %s", rawCa);
+ throw UsageError("content address hash must be in form '<algo>:<hash>', but found: %s", rawCa);
HashType hashType = parseHashType(*hashTypeRaw);
return std::move(hashType);
};
@@ -77,7 +77,7 @@ ContentAddress parseContentAddress(std::string_view rawCa) {
.hash = Hash::parseNonSRIUnprefixed(rest, std::move(hashType)),
};
} else
- throw UsageError("content address prefix \"%s\" is unrecognized. Recogonized prefixes are \"text\" or \"fixed\"", prefix);
+ throw UsageError("content address prefix '%s' is unrecognized. Recogonized prefixes are 'text' or 'fixed'", prefix);
};
std::optional<ContentAddress> parseContentAddressOpt(std::string_view rawCaOpt) {
diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc
index de7ddb84b..3c66a4dfd 100644
--- a/src/libstore/local-store.cc
+++ b/src/libstore/local-store.cc
@@ -578,7 +578,7 @@ void LocalStore::checkDerivationOutputs(const StorePath & drvPath, const Derivat
envHasRightPath(path, i.first);
},
[&](DerivationOutputCAFloating _) {
- throw UnimplementedError("Floating CA output derivations are not yet implemented");
+ throw UnimplementedError("floating CA output derivations are not yet implemented");
},
}, i.second.output);
}