Skip to content

Commit

Permalink
fix: [251727/mount] directly report GIO error.
Browse files Browse the repository at this point in the history
  • Loading branch information
itsXuSt authored and deepin-bot[bot] committed May 9, 2024
1 parent faf0246 commit 04d33a8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dfm-base/utils/dialogmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ void DialogManager::showErrorDialogWhenOperateDeviceFailed(OperateType type, DFM
errMsg = tr("Permission denied");
else if (static_cast<int>(err.code) == ENOENT)
errMsg = tr("No such file or directory");
else if (err.code >= DeviceError::kGIOError
&& err.code <= DeviceError::kGIOErrorMessageTooLarge)
errMsg = err.message;
else
errMsg = tr("Error occured while mounting device");

Expand Down

0 comments on commit 04d33a8

Please sign in to comment.