This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +11
-5
lines changed
shell/platform/fuchsia/flutter Expand file tree Collapse file tree 1 file changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -231,15 +231,21 @@ Application::Application(
231231 << " ): " << zx_status_get_string (status);
232232 return ;
233233 }
234- const char * other_dirs[] = {" debug" , " ctrl" };
234+ const char * other_dirs[] = {" debug" , " ctrl" , " diagnostics " };
235235 // add other directories as RemoteDirs.
236236 for (auto & dir_str : other_dirs) {
237237 fidl::InterfaceHandle<fuchsia::io::Directory> dir;
238238 auto request = dir.NewRequest ().TakeChannel ();
239- fdio_service_connect_at (directory_ptr_.channel ().get (), dir_str,
240- request.release ());
241- outgoing_dir_->AddEntry (
242- dir_str, std::make_unique<vfs::RemoteDir>(dir.TakeChannel ()));
239+ auto status = fdio_service_connect_at (directory_ptr_.channel ().get (),
240+ dir_str, request.release ());
241+ if (status == ZX_OK) {
242+ outgoing_dir_->AddEntry (
243+ dir_str, std::make_unique<vfs::RemoteDir>(dir.TakeChannel ()));
244+ } else {
245+ FML_LOG (ERROR) << " could not add out directory entry(" << dir_str
246+ << " ) for flutter app(" << debug_label_
247+ << " ): " << zx_status_get_string (status);
248+ }
243249 }
244250 };
245251
You can’t perform that action at this time.
0 commit comments