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 <mail@profpatsch.de>
Tested-by: BuildkiteCI
This commit is contained in:
Vincent Ambo 2020-08-10 17:43:17 +01:00 committed by tazjin
parent 5851f672ac
commit a1965e9182

View file

@ -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__);