Improve "insufficient disk space" error message
ClosedPublic

Authored by ngraham on Sep 16 2018, 6:50 PM.

Details

Summary

The prior error was misleading, and always said "Disk full." even when the disk wasn't actually full; not having enough space to move or copy the requested file doesn't mean that the disk is full! This patch re-words the error message to be clearer and still work when errorString is defined (as it always should be).

Test Plan

Before:

After:

Diff Detail

Repository
R241 KIO
Branch
improve-insufficient-disk-space-error-message (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 2931
Build 2949: arc lint + arc unit
ngraham created this revision.Sep 16 2018, 6:50 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptSep 16 2018, 6:50 PM
Restricted Application added a subscriber: kde-frameworks-devel. · View Herald Transcript
ngraham requested review of this revision.Sep 16 2018, 6:50 PM
shubham accepted this revision.Sep 16 2018, 6:53 PM
This revision is now accepted and ready to land.Sep 16 2018, 6:53 PM
abetts added a subscriber: abetts.Sep 16 2018, 8:51 PM

I like the proposal already. I would just add other strings for perspective:

  • Cannot move file. File larger than remaining space.
  • Unable to move file, insufficient space remaining.

We can't use the words "file" or "move" since this part of the code can't know whether the user is moving or copying, or whether the thing being moved or copied is a file or a directory. Adjusting the code here to know those pieces of information not easily possible and would involve patches to multiple other repos--and it's also out of scope for this patch. :)

We can't use the words "file" or "move" since this part of the code can't know whether the user is moving or copying, or whether the thing being moved or copied is a file or a directory. Adjusting the code here to know those pieces of information not easily possible and would involve patches to multiple other repos--and it's also out of scope for this patch. :)

Not married to any string. I think the patch is already improving it, just showing some perspective. I guess my main angle is to communicate the information as soon as the sentence starts. Something like "Not enough" or "Unable to" right off the bat so it can have a more immediate understanding from the user. ;)

Maybe "Dont have enough space available on the disk"

ngraham retitled this revision from Improve "insufficient disk space" error messgae to Improve "insufficient disk space" error message.Sep 18 2018, 2:21 AM
ngraham closed this revision.Sep 18 2018, 2:22 AM