Fix setup.yml

This commit is contained in:
chouseknecht
2013-05-06 15:13:37 -04:00
committed by Chris Houseknecht
parent c1cc2a1e0b
commit 2afd8d44e7
2 changed files with 42 additions and 42 deletions

View File

@@ -51,7 +51,7 @@ function Authenticate($scope, $rootScope, $location, Authorization, ToggleClass,
});
})
.error( function(data, status, headers, config) {
if ( data && data.non_field_errors.length == 0 ) {
if ( data.non_field_errors && data.non_field_errors.length == 0 ) {
// show field specific errors returned by the API
for (var key in data) {
$scope[key + 'Error'] = data[key][0];