mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update error adding to list
This commit is contained in:
parent
be63b39171
commit
f212bba23d
@ -38,9 +38,7 @@ void ErrorManager::addError(Error* error)
|
||||
std::list<Error*>* list = nullptr;
|
||||
|
||||
//printf("[ErrorManager::addError] error with function: %s, %s\n", error->getFunctionName(), error->getMessage());
|
||||
mLogging.error("[ErrorManager::addError] error with function: %s, %s",
|
||||
std::string(error->getFunctionName()), std::string(error->getMessage())
|
||||
);
|
||||
mLogging.error("[ErrorManager::addError] %s", error->getString());
|
||||
|
||||
if (it == mErrorsMap.end()) {
|
||||
list = new std::list<Error *>;
|
||||
|
||||
@ -57,9 +57,7 @@ ErrorList::~ErrorList()
|
||||
|
||||
void ErrorList::addError(Error* error)
|
||||
{
|
||||
mLogging.error("[ErrorList::addError] error with function: %s, %s",
|
||||
std::string(error->getFunctionName()), std::string(error->getMessage())
|
||||
);
|
||||
mLogging.error("[ErrorList::addError] %s", error->getString());
|
||||
mErrorStack.push(error);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user