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 @@ -141,16 +141,16 @@ impl UninitializedSandbox {
141
141
host_print_writer : Option < & dyn HostFunction1 < String , i32 > > ,
142
142
) -> Result < Self > {
143
143
log_build_details ( ) ;
144
-
145
144
// If the guest binary is a file make sure it exists
146
145
147
146
let guest_binary = match guest_binary {
148
147
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) ) ?;
151
151
GuestBinary :: FilePath ( path. to_str ( ) . unwrap ( ) . to_string ( ) )
152
152
}
153
- GuestBinary :: Buffer ( buffer ) => GuestBinary :: Buffer ( buffer) ,
153
+ buffer @ GuestBinary :: Buffer ( _ ) => buffer,
154
154
} ;
155
155
156
156
let run_opts = sandbox_run_options. unwrap_or_default ( ) ;
You can’t perform that action at this time.
0 commit comments