Website: return 404 if Android enterprise application is not found (#39935)
This commit is contained in:
@@ -81,6 +81,8 @@ module.exports = {
|
||||
name: `enterprises/${androidEnterpriseId}/applications/${applicationId}`,
|
||||
});
|
||||
return getApplicationsResult.data;
|
||||
}).intercept({status: 404}, () => {
|
||||
return {'notFound': 'App not found.'};
|
||||
}).intercept((err) => {
|
||||
let errorString = err.toString();
|
||||
if (errorString.includes('Device is no longer being managed')) {
|
||||
|
||||
Reference in New Issue
Block a user