Review Request 129170: Add KArchive::errorString() method to provide more details on KArchive errors

Anthony Fieroni bvbfan at abv.bg
Fri Oct 14 04:44:04 UTC 2016


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/129170/#review99996
-----------------------------------------------------------




autotests/karchivetest.cpp (line 353)
<https://git.reviewboard.kde.org/r/129170/#comment67162>

    If you run tests in other language rather than english they will fail, all of them.



src/k7zip.cpp (line 2369)
<https://git.reviewboard.kde.org/r/129170/#comment67163>

    Not translated



src/k7zip.cpp (line 2588)
<https://git.reviewboard.kde.org/r/129170/#comment67164>

    same



src/karchive_p.h (line 54)
<https://git.reviewboard.kde.org/r/129170/#comment67165>

    same


- Anthony Fieroni


On Окт. 14, 2016, 7:29 преди обяд, Romário Rios wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129170/
> -----------------------------------------------------------
> 
> (Updated Окт. 14, 2016, 7:29 преди обяд)
> 
> 
> Review request for KDE Frameworks.
> 
> 
> Repository: karchive
> 
> 
> Description
> -------
> 
> This method is similar to `QIODevice::errorString()`. I added a public `errorString()` method and a protected `setErrorString()` method, to allow `KArchive`'s subclasses to implement their own error messages. I also implemented most error messages from most subclasses.
> 
> 
> Diffs
> -----
> 
>   autotests/karchivetest.cpp d0fbf41 
>   src/k7zip.cpp 692b1db 
>   src/kar.cpp 7204fb1 
>   src/karchive.h b528a4a 
>   src/karchive.cpp a1a160a 
>   src/karchive_p.h 256620d 
>   src/krcc.cpp 1947dd6 
>   src/ktar.cpp f70b155 
>   src/kzip.cpp 94d4276 
> 
> Diff: https://git.reviewboard.kde.org/r/129170/diff/
> 
> 
> Testing
> -------
> 
> I added `QVERIFY` calls after all errors in `karchivetests.cpp`. Perhaps we'll need more tests, but I'm not sure how to make an archive to fail in some specific way aside from the very basics ("file not found", etc.).
> 
> 
> Thanks,
> 
> Romário Rios
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20161014/76fb4f81/attachment.html>


More information about the Kde-frameworks-devel mailing list