Skip to content

Commit

Permalink
Expose complete active error list
Browse files Browse the repository at this point in the history
Signed-off-by: Cornelius Claussen <[email protected]>
  • Loading branch information
corneliusclaussen committed Sep 12, 2024
1 parent dadfc93 commit f211cfe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions include/utils/error/error_state_monitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@ class ErrorStateMonitor {
bool is_error_active(const ErrorType& type, const ErrorSubType& sub_type) const;

///
/// \brief get_active_error_count returns the amount of active errors for this error state monitor
/// \return Amount of active errors
/// \brief get_active_errors returns the list of active errors for this error state monitor
/// \return List of active errors
///
int get_ative_error_count() const;
std::list<ErrorPtr> get_active_errors() const;

///
/// \brief is_condition_satisfied checks if a certain condition is satisfied
Expand Down
4 changes: 2 additions & 2 deletions lib/error/error_state_monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ bool ErrorStateMonitor::is_error_active(const ErrorType& type, const ErrorSubTyp
return database->get_errors(filters).size() > 0;
}

int ErrorStateMonitor::get_ative_error_count() const {
return database->get_errors({}).size();
std::list<ErrorPtr> ErrorStateMonitor::get_active_errors() const {
return database->get_errors({});
}

bool ErrorStateMonitor::is_condition_satisfied(const StateCondition& condition) const {
Expand Down

0 comments on commit f211cfe

Please sign in to comment.