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
27 lines
467 B
C++
27 lines
467 B
C++
/*
|
|
* Copyright (c) 2018-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the LICENSE
|
|
* file in the root directory of this source tree.
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
|
|
class SonarState;
|
|
|
|
class SonarStep {
|
|
public:
|
|
void complete();
|
|
void fail(std::string message);
|
|
SonarStep(std::string name, SonarState* state);
|
|
~SonarStep();
|
|
|
|
private:
|
|
std::string name;
|
|
bool isLogged = false;
|
|
SonarState* state;
|
|
};
|