aboutsummaryrefslogtreecommitdiff
path: root/src/libstore
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-08-05 16:47:48 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-08-05 16:47:48 +0200
commit25f79121564b21ec7c84f33c9348b169f20d2bdc (patch)
tree66ee14cfee8347fdc9e0ca2547b39abd803fdfbe /src/libstore
parentb91dc7ebad733f557dd812f285095b700c267fa2 (diff)
Style fix
Diffstat (limited to 'src/libstore')
-rw-r--r--src/libstore/content-address.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libstore/content-address.cc b/src/libstore/content-address.cc
index 749551d1a..6428aa736 100644
--- a/src/libstore/content-address.cc
+++ b/src/libstore/content-address.cc
@@ -48,14 +48,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);
};
@@ -81,7 +81,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) {