Allow steps to fail with error message
Summary: Add a method to add error messages into failed steps. This will be surfaced in the diagnostic screen, to help the user troubleshoot. Reviewed By: passy Differential Revision: D9333322 fbshipit-source-id: 5f1e55c3d71b19292dbc428aaecfbd41e7a75125
This commit is contained in:
committed by
Facebook Github Bot
parent
dfcfa9f7fa
commit
38391ca29e
@@ -41,7 +41,7 @@ void SonarState::success(std::string step) {
|
||||
}
|
||||
|
||||
void SonarState::failed(std::string step, std::string errorMessage) {
|
||||
log = log + "[Failed] " + step + "\n";
|
||||
log = log + "[Failed] " + step + ": " + errorMessage + "\n";
|
||||
stateMap[step] = State::failed;
|
||||
if (mListener) {
|
||||
mListener->onUpdate();
|
||||
|
||||
Reference in New Issue
Block a user