From a1965e918285550c553b53e5e804fc2fdaa0edd6 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 10 Aug 2020 17:43:17 +0100 Subject: fix(tvix): Print invalid store path when encountered ... instead of silently swallowing it. Change-Id: I084c51d633d632bd4e3f1ca42987dd6068fbb2a9 Reviewed-on: https://cl.tvl.fyi/c/depot/+/1707 Reviewed-by: Profpatsch Tested-by: BuildkiteCI --- third_party/nix/src/nix-daemon/nix-daemon-proto.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'third_party') 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__); -- cgit 1.4.1