summaryrefslogtreecommitdiff
path: root/nix/libstore/globals.cc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-06-12 23:11:37 +0200
committerLudovic Courtès <ludo@gnu.org>2019-06-13 00:44:01 +0200
commit76533c52c06de4823738b32e450a1a06522018d1 (patch)
tree777d0a1d5dc8001ed4133ef1f8a4fc6b368cea01 /nix/libstore/globals.cc
parentbd9b15fb31f36f0d592b777bc95205eb0b037035 (diff)
downloadpatches-76533c52c06de4823738b32e450a1a06522018d1.tar
patches-76533c52c06de4823738b32e450a1a06522018d1.tar.gz
daemon: Replace "illegal" by "invalid" in error messages.
* nix/libstore/build.cc (parseReferenceSpecifiers): Replace "illegal" by "invalid". * nix/libstore/globals.cc (Settings::pack): Likewise. * nix/libstore/store-api.cc (checkStoreName): Likewise.
Diffstat (limited to 'nix/libstore/globals.cc')
-rw-r--r--nix/libstore/globals.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/libstore/globals.cc b/nix/libstore/globals.cc
index 69f6d06563..6df20e7a52 100644
--- a/nix/libstore/globals.cc
+++ b/nix/libstore/globals.cc
@@ -196,7 +196,7 @@ string Settings::pack()
if (i->first.find('\n') != string::npos ||
i->first.find('=') != string::npos ||
i->second.find('\n') != string::npos)
- throw Error("illegal option name/value");
+ throw Error("invalid option name/value");
s += i->first; s += '='; s += i->second; s += '\n';
}
return s;