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

QIODevice::errorString() always returns Unknown error when there is no error string set

    XMLWordPrintable

Details

    Description

      While this is probably as intended and the right way would be to use the class inheriting from QIODevice to check if there is an error, sometimes only QIODevice is accessible. Since the message "Unknown error" (can be translated too) hints that there is an error while there might not actually be, it could lead to some confusion.

      Perhaps if this behavior of errorString() cannot be changed, maybe there could be another function like hasErrorString() or something which checks if the errorString is set or not.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes