mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-05-29 11:19:16 +08:00
Display error when delete fails.
This commit is contained in:
parent
bedc96c647
commit
8b8a93afc2
@ -154,6 +154,7 @@ int main(int argc, char **argv) {
|
|||||||
std::stringstream resultMsg;
|
std::stringstream resultMsg;
|
||||||
resultMsg << "Delete failed!" << "\n";
|
resultMsg << "Delete failed!" << "\n";
|
||||||
resultMsg << fileName << "\n";
|
resultMsg << fileName << "\n";
|
||||||
|
resultMsg << platformGetErrorString(platformGetError()) << "\n";
|
||||||
uiPrompt(TOP_SCREEN, resultMsg.str(), false);
|
uiPrompt(TOP_SCREEN, resultMsg.str(), false);
|
||||||
failed = true;
|
failed = true;
|
||||||
break;
|
break;
|
||||||
@ -201,6 +202,7 @@ int main(int argc, char **argv) {
|
|||||||
resultMsg << "succeeded!";
|
resultMsg << "succeeded!";
|
||||||
} else {
|
} else {
|
||||||
resultMsg << "failed!" << "\n";
|
resultMsg << "failed!" << "\n";
|
||||||
|
resultMsg << platformGetErrorString(platformGetError()) << "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user