- Forbidden -
-- <% if (typeof messageĀ !== 'undefined') { %> - <%= message %> - <% } else { %> - You don't have permission to see the page you're trying to reach. - <% } %> -
-- Why might this be happening? -
-diff --git a/assets/linker/js/controllers/run-controller.coffee b/assets/linker/js/controllers/run-controller.coffee index 7dcf8d3..fc2a06c 100644 --- a/assets/linker/js/controllers/run-controller.coffee +++ b/assets/linker/js/controllers/run-controller.coffee @@ -8,6 +8,10 @@ lunchControllers.controller 'RunCtrl', ['$scope', 'socket', '$routeParams', ($sc socket.get '/run/' + $routeParams['id'], (response) -> + if response.status is 404 + window.location = '/404' + return + $scope.show = true $scope.run = response diff --git a/views/403.ejs b/views/403.ejs deleted file mode 100644 index 28dc68d..0000000 --- a/views/403.ejs +++ /dev/null @@ -1,76 +0,0 @@ - - - -
-
- - Why might this be happening? -
-
-
-
- - Why might this be happening? -
-
-
-
- <%
- _.each(errors, function (error) { %>
- <%= error %>
- <%
- }); %>
-
- <% } else { %>
-
-
- A team of highly trained sea bass is working on this as we speak.
- If the problem persists, please contact the system administrator and inform them of the time that the error occured, and anything you might have done that may have caused the error.
-