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:
		
							parent
							
								
									5851f672ac
								
							
						
					
					
						commit
						a1965e9182
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -500,9 +500,8 @@ class WorkerServiceImpl final : public WorkerService::Service { | ||||||
|             response->set_ca(info->ca); |             response->set_ca(info->ca); | ||||||
| 
 | 
 | ||||||
|             return Status::OK; |             return Status::OK; | ||||||
|           } catch (InvalidPath&) { |           } catch (InvalidPath& e) { | ||||||
|             return Status(grpc::StatusCode::INVALID_ARGUMENT, |             return Status(grpc::StatusCode::INVALID_ARGUMENT, e.msg()); | ||||||
|                           "Invalid store path"); |  | ||||||
|           } |           } | ||||||
|         }, |         }, | ||||||
|         __FUNCTION__); |         __FUNCTION__); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue