diff --git a/app/scripts/directives/create-content.js b/app/scripts/directives/create-content.js index 359a45ac2..d607e4fdb 100644 --- a/app/scripts/directives/create-content.js +++ b/app/scripts/directives/create-content.js @@ -58,8 +58,12 @@ angular.module('bulbsCmsApp') } $window.location.href = $window.location.origin + new_path; }).error(function (data, status, headers, config) { - console.log('wow. error.'); - $('button.go').html(' Error!'); + if (status === 403) { + $('button.go') + .html(' Please Login'); + } else { + $('button.go').html(' Error!'); + } $scope.gotSave = false; }); }