Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-100867

QFile::copy error string is uninformative

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • 6.3.0 Beta3, 6.4.0 Beta1
    • 5.12.12, 5.15.7, 6.2.3
    • Core: I/O
    • None
    • All
    • d34282dba0 (qt/qtbase/dev) d34282dba0 (qt/tqtc-qtbase/dev) 5d43795191 (qt/qtbase/6.3) 5d43795191 (qt/tqtc-qtbase/6.3)

    Description

       

      QFile::copy outputs its own error strings, so it is impossible to know the actual reason the copy failed. For example

      QFile f("a");
      if (!f.copy("b"))
          return f.errorString();

      returns "Failure to write block" when the actual error is "No space left on device". 

       

      Attachments

        For Gerrit Dashboard: QTBUG-100867
        # Subject Branch Project Status CR V

        Activity

          People

            thiago Thiago Macieira
            kalinnikov Vadim Kalinnikov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes