aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/realisation.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libstore/realisation.hh')
-rw-r--r--src/libstore/realisation.hh9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libstore/realisation.hh b/src/libstore/realisation.hh
index 2a093c128..0548b30c1 100644
--- a/src/libstore/realisation.hh
+++ b/src/libstore/realisation.hh
@@ -5,6 +5,7 @@
#include "hash.hh"
#include "path.hh"
+#include "derived-path.hh"
#include <nlohmann/json_fwd.hpp>
#include "comparator.hh"
#include "crypto.hh"
@@ -143,9 +144,13 @@ class MissingRealisation : public Error
{
public:
MissingRealisation(DrvOutput & outputId)
- : Error( "cannot operate on an output of the "
+ : MissingRealisation(outputId.outputName, outputId.strHash())
+ {}
+ MissingRealisation(std::string_view drv, std::string outputName)
+ : Error( "cannot operate on output '%s' of the "
"unbuilt derivation '%s'",
- outputId.to_string())
+ outputName,
+ drv)
{}
};