1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 23:51:09 +03:00

fixed error handling of options

This commit is contained in:
John Mitchell 2016-04-06 15:48:00 -04:00
parent 967194a3f3
commit c2d9cf466d

View File

@ -93,18 +93,19 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', function(R
value: i[0],
label: i[1]
};
});
return option;
});
return option;
});
Wait("stop");
defer.resolve(joinOptions());
})
.error(function (data, status) {
Wait("stop");
defer.reject("options request failed");
ProcessErrors(null, data, status, null, {
hdr: 'Error!',
msg: 'Getting type options failed'});
});
Wait("stop");
defer.resolve(joinOptions());
});
} else {
Wait("stop");
defer.resolve(joinOptions());