mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +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;
|
std::list<Error*>* list = nullptr;
|
||||||
|
|
||||||
//printf("[ErrorManager::addError] error with function: %s, %s\n", error->getFunctionName(), error->getMessage());
|
//printf("[ErrorManager::addError] error with function: %s, %s\n", error->getFunctionName(), error->getMessage());
|
||||||
mLogging.error("[ErrorManager::addError] error with function: %s, %s",
|
mLogging.error("[ErrorManager::addError] %s", error->getString());
|
||||||
std::string(error->getFunctionName()), std::string(error->getMessage())
|
|
||||||
);
|
|
||||||
|
|
||||||
if (it == mErrorsMap.end()) {
|
if (it == mErrorsMap.end()) {
|
||||||
list = new std::list<Error *>;
|
list = new std::list<Error *>;
|
||||||
|
|||||||
@ -57,9 +57,7 @@ ErrorList::~ErrorList()
|
|||||||
|
|
||||||
void ErrorList::addError(Error* error)
|
void ErrorList::addError(Error* error)
|
||||||
{
|
{
|
||||||
mLogging.error("[ErrorList::addError] error with function: %s, %s",
|
mLogging.error("[ErrorList::addError] %s", error->getString());
|
||||||
std::string(error->getFunctionName()), std::string(error->getMessage())
|
|
||||||
);
|
|
||||||
mErrorStack.push(error);
|
mErrorStack.push(error);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user