catch undefined basePath config #1626

This commit is contained in:
Leigh Johnson
2016-04-21 10:15:10 -04:00
parent dd0340f909
commit 08f9782290

View File

@@ -99,7 +99,7 @@ export default ['Rest', '$q', 'GetBasePath', 'Wait', 'ProcessErrors', '$log', fu
}); });
} }
catch(err){ catch(err){
if (basePath === ''){ if (!basePath){
$log.error('Cannot retrieve OPTIONS because the basePath parameter is not set on the list with the following fieldset: \n', list); $log.error('Cannot retrieve OPTIONS because the basePath parameter is not set on the list with the following fieldset: \n', list);
} }
else { $log.error(err); } else { $log.error(err); }