about summary refs log tree commit diff
path: root/third_party/nix/src/nix-daemon/nix-daemon-proto.cc
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-08-10T16·43+0100
committertazjin <mail@tazj.in>2020-08-10T16·49+0000
commita1965e918285550c553b53e5e804fc2fdaa0edd6 (patch)
tree648746ac1493488c6b9a68b8b9a27a9e3d173b5d /third_party/nix/src/nix-daemon/nix-daemon-proto.cc
parent5851f672aca266bd2716d1b82bc81817d629abc0 (diff)
fix(tvix): Print invalid store path when encountered r/1631
... instead of silently swallowing it.

Change-Id: I084c51d633d632bd4e3f1ca42987dd6068fbb2a9
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1707
Reviewed-by: Profpatsch <mail@profpatsch.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/nix/src/nix-daemon/nix-daemon-proto.cc')
-rw-r--r--third_party/nix/src/nix-daemon/nix-daemon-proto.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/third_party/nix/src/nix-daemon/nix-daemon-proto.cc b/third_party/nix/src/nix-daemon/nix-daemon-proto.cc
index cab16e599812..f87f901be074 100644
--- a/third_party/nix/src/nix-daemon/nix-daemon-proto.cc
+++ b/third_party/nix/src/nix-daemon/nix-daemon-proto.cc
@@ -500,9 +500,8 @@ class WorkerServiceImpl final : public WorkerService::Service {
             response->set_ca(info->ca);
 
             return Status::OK;
-          } catch (InvalidPath&) {
-            return Status(grpc::StatusCode::INVALID_ARGUMENT,
-                          "Invalid store path");
+          } catch (InvalidPath& e) {
+            return Status(grpc::StatusCode::INVALID_ARGUMENT, e.msg());
           }
         },
         __FUNCTION__);