Function getErrorMessage

Synopsis

#include <include/fileupdatecallback.hpp>

wstring getErrorMessage() const override

Description

No description yet.

Source

Lines 165-175 in src/fileupdatecallback.cpp. Line 44 in include/fileupdatecallback.hpp.

wstring FileUpdateCallback::getErrorMessage() const {
    if ( !mFailedFiles.empty() ) {
        std::wstringstream wsstream;
        wsstream << L"Error for files: " << std::endl;
        for ( const auto& failed_file : mFailedFiles ) {
            wsstream << failed_file.first << L" (error code: " << failed_file.second << L")" << std::endl;
        }
        return wsstream.str();
    }
    return Callback::getErrorMessage();
}





Add Discussion as Guest

Log in