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 +13
-5
lines changed
shell/platform/fuchsia/flutter Expand file tree Collapse file tree 1 file changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -233,15 +233,23 @@ Application::Application(
233233 << " ): " << zx_status_get_string (status);
234234 return ;
235235 }
236- const char * other_dirs[] = {" debug" , " ctrl" };
236+ const char * other_dirs[] = {" debug" , " ctrl" , " diagnostics " };
237237 // add other directories as RemoteDirs.
238238 for (auto & dir_str : other_dirs) {
239239 fidl::InterfaceHandle<fuchsia::io::Directory> dir;
240240 auto request = dir.NewRequest ().TakeChannel ();
241- fdio_service_connect_at (directory_ptr_.channel ().get (), dir_str,
242- request.release ());
243- outgoing_dir_->AddEntry (
244- dir_str, std::make_unique<vfs::RemoteDir>(dir.TakeChannel ()));
241+ auto status = fdio_service_connect_at (directory_ptr_.channel ().get (),
242+ dir_str, request.release ());
243+ if (status == ZX_OK) {
244+ outgoing_dir_->AddEntry (
245+ dir_str, std::make_unique<vfs::RemoteDir>(dir.TakeChannel ()));
246+ } else {
247+ FML_LOG (ERROR) << " could not add out directory entry("
248+ << dir_str
249+ << " ) for flutter app("
250+ << debug_label_
251+ << " ): " << zx_status_get_string (status);
252+ }
245253 }
246254 };
247255
You can’t perform that action at this time.
0 commit comments