File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/hyperlight_host/src/sandbox Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -143,14 +143,14 @@ impl UninitializedSandbox {
143143 log_build_details ( ) ;
144144
145145 // If the guest binary is a file make sure it exists
146-
147146 let guest_binary = match guest_binary {
148147 GuestBinary :: FilePath ( binary_path) => {
149- let path = Path :: new ( & binary_path) . canonicalize ( ) ?;
150- path. try_exists ( ) ?;
148+ let path = Path :: new ( & binary_path)
149+ . canonicalize ( )
150+ . map_err ( |e| new_error ! ( "GuestBinary not found: '{}': {}" , binary_path, e) ) ?;
151151 GuestBinary :: FilePath ( path. to_str ( ) . unwrap ( ) . to_string ( ) )
152152 }
153- GuestBinary :: Buffer ( buffer ) => GuestBinary :: Buffer ( buffer) ,
153+ buffer @ GuestBinary :: Buffer ( _ ) => buffer,
154154 } ;
155155
156156 let run_opts = sandbox_run_options. unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments