Review Request 129625: Fix errorString() messages from Slave::createSlave()

David Faure faure at kde.org
Thu Dec 8 08:42:01 UTC 2016


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



Thanks for the fix.

Please note the other rawErrorDetail method. I think the detailed error for ERR_CANNOT_LAUNCH_PROCESS needs to be fixed there (now that it's no longer about starting slaves).
I.e. ERR_CANNOT_CREATE_SLAVE will now have that text (cannot create slave) while ERR_CANNOT_LAUNCH_PROCESS would be more generic (used when dropping onto an executable, when kio_smb looks for smbmount, used by kioslaves that delegate some work to a helper binary like unrar etc.).


src/core/global.h (line 248)
<https://git.reviewboard.kde.org/r/129625/#comment67853>

    s/returned/used/



src/core/job_error.cpp (line 245)
<https://git.reviewboard.kde.org/r/129625/#comment67854>

    Please also add an entry in KIO::rawErrorDetail further down this file (i.e. look for the other instance of KIO::ERR_CANNOT_LAUNCH_PROCESS)


- David Faure


On Dec. 7, 2016, 7:12 p.m., Elvis Angelaccio wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/129625/
> -----------------------------------------------------------
> 
> (Updated Dec. 7, 2016, 7:12 p.m.)
> 
> 
> Review request for KDE Frameworks and David Faure.
> 
> 
> Repository: kio
> 
> 
> Description
> -------
> 
> This patch is an attempt to fix this ugly error message: http://i.imgur.com/26Y6Xix.png
> The problem is that in KIO::buildErrorString() the ERR_CANNOT_LAUNCH_PROCESS case assumes that the `errorText` starts with the name of a process (example usage in [kio_smb](https://lxr.kde.org/source/kde/kdenetwork/kio-extras/smb/kio_smb_mount.cpp#0110)). However, Slave::createSlave() also uses ERR_CANNOT_LAUNCH_PROCESS but with "self-contained" error messages, which results in the unfortunate screenshot above.
> 
> There is no easy way to fix this without breaking the error messages from the client slaves, so I propose to add a new error code ERR_CANNOT_CREATE_SLAVE which is used only by Slave::createSlave() (at least for now).
> 
> 
> Diffs
> -----
> 
>   src/core/global.h 3d38436fbe28f4236b6ca34a651c1805295c02f2 
>   src/core/job_error.cpp a67954cc44be6994992167700315321761ce0528 
>   src/core/slave.cpp 4690ed50d3f5d28bdaeee84f85107ab75cfab555 
> 
> Diff: https://git.reviewboard.kde.org/r/129625/diff/
> 
> 
> Testing
> -------
> 
> See screenshots before/after.
> 
> 
> File Attachments
> ----------------
> 
> Before
>   https://git.reviewboard.kde.org/media/uploaded/files/2016/12/07/a4a6468a-0376-4979-9af0-8a11229acf69__26Y6Xix.png
> After
>   https://git.reviewboard.kde.org/media/uploaded/files/2016/12/07/b534602e-39eb-44bf-915d-046110ed0e78__Screenshot_20161207_194933.png
> 
> 
> Thanks,
> 
> Elvis Angelaccio
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20161208/0a2cbb56/attachment.html>


More information about the Kde-frameworks-devel mailing list