mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
[fix] Use request statusText on API error.
This commit is contained in:
parent
8808bf264d
commit
d442f8fc82
2 changed files with 3 additions and 3 deletions
2
src/dist/js/script.min.js
vendored
2
src/dist/js/script.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -161,8 +161,8 @@ var app = Sammy('#main', function (sam) {
|
||||||
}
|
}
|
||||||
} else if (typeof xhr.responseJSON !== 'undefined') {
|
} else if (typeof xhr.responseJSON !== 'undefined') {
|
||||||
c.flash('fail', xhr.responseJSON.error);
|
c.flash('fail', xhr.responseJSON.error);
|
||||||
} else if (typeof xhr.responseText !== 'undefined' && uri !== '/postinstall') {
|
} else if (typeof xhr.statusText !== 'undefined' && uri !== '/postinstall') {
|
||||||
c.flash('fail', xhr.responseText);
|
c.flash('fail', xhr.statusText);
|
||||||
} else {
|
} else {
|
||||||
if (uri === '/postinstall') {
|
if (uri === '/postinstall') {
|
||||||
if (installing) {
|
if (installing) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue