Details
Description
If I try to load a non-existent Qt resource, e.g.:
QFile f{":/does/not/exist"};
f.open(QFile::ReadOnly);
...it fails, as expected. However, QFile::errorString is set to a not very informative "Unknown error". It would be better if this gave something like "Resource not found" (bonus points for 'resource', but "File not found" would still be an improvement).
Attachments
For Gerrit Dashboard: QTBUG-45259 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
155324,5 | Better error message when trying to load an invalid resource | 5.6 | qt/qtbase | Status: MERGED | +2 | 0 |
155436,1 | Better error message when trying to load an invalid resource | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |