diff --git a/src/gui/opkg_manager.cpp b/src/gui/opkg_manager.cpp index b2d64438e..bdf2792d9 100644 --- a/src/gui/opkg_manager.cpp +++ b/src/gui/opkg_manager.cpp @@ -427,7 +427,7 @@ int COPKGManager::doUpdate() { int r = execCmd(pkg_types[OM_UPDATE]); if (r == -1) { - string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE)) + "\n" + err_msg; + string msg = string(g_Locale->getText(LOCALE_OPKG_FAILURE_UPDATE)); DisplayErrorMessage(msg.c_str()); return r; } @@ -675,7 +675,6 @@ int COPKGManager::execCmd(const char *cmdstr, bool verbose, bool acknowledge) int res = 0; has_err = false; tmp_str.clear(); - err_msg = ""; bool ok = true; if (verbose) { //create CShellWindow object diff --git a/src/gui/opkg_manager.h b/src/gui/opkg_manager.h index 6ef3fe83b..0403903db 100644 --- a/src/gui/opkg_manager.h +++ b/src/gui/opkg_manager.h @@ -96,7 +96,6 @@ class COPKGManager : public CMenuTarget err_list = errlist; }; void showErr(int* res); - std::string err_msg; int execCmd(const char* cmdstr, bool verbose = false, bool acknowledge = false); int execCmd(std::string cmdstr, bool verbose = false, bool acknowledge = false) {