[Lldb-commits] [PATCH] D138060: Improve error logging when xcrun fails to execute successfully
Jonas Devlieghere via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Nov 15 18:49:02 PST 2022
JDevlieghere requested changes to this revision.
JDevlieghere added inline comments.
This revision now requires changes to proceed.
================
Comment at: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm:410
+ LLDB_LOG(log, "xcrun returned exit code %d", status);
+ return "";
+ }
----------------
Why not return an Error?
================
Comment at: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm:414
+ LLDB_LOG(log, "xcrun returned no results");
+ return "";
+ }
----------------
Same question.
================
Comment at: lldb/source/Host/macosx/objcxx/HostInfoMacOSX.mm:495
LLDB_LOGF(log, "Couldn't find any matching SDK on host");
- return {};
+ return "";
}
----------------
Here too, why not return a `StringError` with the log message from the live above?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D138060/new/
https://reviews.llvm.org/D138060
More information about the lldb-commits
mailing list