Univention Bugzilla – Attachment 4696 Details for
Bug 28551
Anpassungen an das Dojo-Framework (2)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch für umc.tools.parseError()
umc_tools_parseError.patch (text/plain), 1.00 KB, created by
Alexander Kläser
on 2012-10-02 09:59:07 CEST
(
hide
)
Description:
Patch für umc.tools.parseError()
Filename:
MIME Type:
Creator:
Alexander Kläser
Created:
2012-10-02 09:59:07 CEST
Size:
1.00 KB
patch
obsolete
>Index: umc/tools.js >=================================================================== >--- umc/tools.js (Revision 35991) >+++ umc/tools.js (Arbeitskopie) >@@ -516,19 +516,26 @@ > }, > > parseError: function(error) { >- if (!error.data) { >+ if (error.data) { >+ return { >+ status: parseInt(error.data.status, 10) || error.status, >+ message: error.data.message || '', >+ result: error.data.result >+ }; >+ } >+ if (error.response) { > // no JSON was returned, propably proxy error > var r = /<title>(.*)<\/title>/; > return { > status: error.status, >- message: r.test(error.text) ? r.exec(error.text)[1] : 'Internal Server Error', >+ message: r.test(error.text) ? r.exec(error.text)[1] : this._statusMessages[500], > result: null > }; > } > return { >- status: parseInt(error.data.status, 10) || error.status, >- message: error.data.message || '', >- result: error.data.result >+ status: 500, >+ message: this._statusMessages[500], >+ result: null > }; > }, >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 28551
: 4696