<table><tr><td style="">ngraham added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D14757">View Revision</a></tr></table><br /><div><div><p>Perfect, thanks! I did some investigation and this oddly-formed string is actually built by KIO itself, in <tt style="background: #ebebeb; font-size: 13px;">core/job_error.cpp</tt>:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">case KIO::ERR_DISK_FULL:
result = i18n("Could not write file %1.\nDisk full.", errorText);
break;</pre></div>
<p>It looks like <tt style="background: #ebebeb; font-size: 13px;">KIO::ERR_DISK_FULL</tt> is expecting <tt style="background: #ebebeb; font-size: 13px;">errorText</tt> to simply be a filename or path, and our fancier string isn't compatible with its expectations. :( It looks like in this patch, we should pass the source file/directory to <tt style="background: #ebebeb; font-size: 13px;">q->setErrorText()</tt> without any fancy strings, to follow the API.</p>
<p>However, in another patch I'd like to investigate adjusting the formatting in <tt style="background: #ebebeb; font-size: 13px;">core/job_error.cpp</tt> to support fancy error messages (in particular information about required and available space, which I think is a usability improvement over just saying "disk full"), and then change all the error strings accordingly . Nearly all uses are in KIO, but one is in kio-gdrive, one is in kio-extras, and one is in plasma-framework. <span class="phabricator-remarkup-mention-unknown">@what</span> are your thoughts on this, <a href="https://phabricator.kde.org/p/dfaure/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@dfaure</a>, <a href="https://phabricator.kde.org/p/pino/" style="
border-color: #f1f7ff;
color: #19558d;
background-color: #f1f7ff;
border: 1px solid transparent;
border-radius: 3px;
font-weight: bold;
padding: 0 4px;">@pino</a>, or anyone else from <a href="https://phabricator.kde.org/tag/frameworks/" style="background-color: #e7e7e7;
border-color: #e7e7e7;
border-radius: 3px;
padding: 0 4px;
font-weight: bold;
color: black;text-decoration: none;">#frameworks</a>?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D14757">https://phabricator.kde.org/D14757</a></div></div><br /><div><strong>To: </strong>shubham, pino, dfaure, broulik, ngraham<br /><strong>Cc: </strong>ngraham, dfaure, pino, kde-frameworks-devel, michaelh, bruns<br /></div>