aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarlo Nucera <carlo.nucera@protonmail.com>2020-07-20 14:13:37 -0400
committerCarlo Nucera <carlo.nucera@protonmail.com>2020-07-20 14:13:37 -0400
commit362ae93851830ecce6ade70462fe991cc522d27b (patch)
treedd063257ee3a64df47f672d85b9d2af6d6ac002a /src
parent745a03cef5977e3474dcf8ef43cb721a6a7cac8e (diff)
Add UnimplementedError to ease grepping for these
Diffstat (limited to 'src')
-rw-r--r--src/libfetchers/git.cc2
-rw-r--r--src/libstore/build.cc2
-rw-r--r--src/libstore/derivations.hh2
-rw-r--r--src/libutil/error.hh1
4 files changed, 4 insertions, 3 deletions
diff --git a/src/libfetchers/git.cc b/src/libfetchers/git.cc
index 5d38e0c2b..b1b47c45f 100644
--- a/src/libfetchers/git.cc
+++ b/src/libfetchers/git.cc
@@ -121,7 +121,7 @@ struct GitInputScheme : InputScheme
args.push_back(*ref);
}
- if (input.getRev()) throw Error("cloning a specific revision is not implemented");
+ if (input.getRev()) throw UnimplementedError("cloning a specific revision is not implemented");
args.push_back(destDir);
diff --git a/src/libstore/build.cc b/src/libstore/build.cc
index 1c88d91bc..3380dbdaf 100644
--- a/src/libstore/build.cc
+++ b/src/libstore/build.cc
@@ -1197,7 +1197,7 @@ void DerivationGoal::haveDerivation()
if (parsedDrv->contentAddressed()) {
settings.requireExperimentalFeature("ca-derivations");
- throw Error("ca-derivations isn't implemented yet");
+ throw UnimplementedError("ca-derivations isn't implemented yet");
}
diff --git a/src/libstore/derivations.hh b/src/libstore/derivations.hh
index 36ac09210..c8f8d10dc 100644
--- a/src/libstore/derivations.hh
+++ b/src/libstore/derivations.hh
@@ -44,7 +44,7 @@ struct DerivationOutput
/* DEPRECATED: Remove after CA drvs are fully implemented */
StorePath path(const Store & store, std::string_view drvName) const {
auto p = pathOpt(store, drvName);
- if (!p) throw Error("floating content-addressed derivations are not yet implemented");
+ if (!p) throw UnimplementedError("floating content-addressed derivations are not yet implemented");
return *p;
}
};
diff --git a/src/libutil/error.hh b/src/libutil/error.hh
index 0daaf3be2..f3babcbde 100644
--- a/src/libutil/error.hh
+++ b/src/libutil/error.hh
@@ -192,6 +192,7 @@ public:
MakeError(Error, BaseError);
MakeError(UsageError, Error);
+MakeError(UnimplementedError, Error);
class SysError : public Error
{