Add UnimplementedError to ease grepping for these
This commit is contained in:
parent
745a03cef5
commit
362ae93851
|
@ -121,7 +121,7 @@ struct GitInputScheme : InputScheme
|
||||||
args.push_back(*ref);
|
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);
|
args.push_back(destDir);
|
||||||
|
|
||||||
|
|
|
@ -1197,7 +1197,7 @@ void DerivationGoal::haveDerivation()
|
||||||
|
|
||||||
if (parsedDrv->contentAddressed()) {
|
if (parsedDrv->contentAddressed()) {
|
||||||
settings.requireExperimentalFeature("ca-derivations");
|
settings.requireExperimentalFeature("ca-derivations");
|
||||||
throw Error("ca-derivations isn't implemented yet");
|
throw UnimplementedError("ca-derivations isn't implemented yet");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -44,7 +44,7 @@ struct DerivationOutput
|
||||||
/* DEPRECATED: Remove after CA drvs are fully implemented */
|
/* DEPRECATED: Remove after CA drvs are fully implemented */
|
||||||
StorePath path(const Store & store, std::string_view drvName) const {
|
StorePath path(const Store & store, std::string_view drvName) const {
|
||||||
auto p = pathOpt(store, drvName);
|
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;
|
return *p;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -192,6 +192,7 @@ public:
|
||||||
|
|
||||||
MakeError(Error, BaseError);
|
MakeError(Error, BaseError);
|
||||||
MakeError(UsageError, Error);
|
MakeError(UsageError, Error);
|
||||||
|
MakeError(UnimplementedError, Error);
|
||||||
|
|
||||||
class SysError : public Error
|
class SysError : public Error
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue