diff options
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/nix/src/nix-daemon/nix-daemon-proto.cc | 5 |
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__); |