You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by ak...@apache.org on 2015/12/02 13:59:33 UTC

ignite git commit: IGNITE-843 Minor.

Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc2 6c5dfcc5d -> 7ee88359b


IGNITE-843 Minor.


Project: http://git-wip-us.apache.org/repos/asf/ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/ignite/commit/7ee88359
Tree: http://git-wip-us.apache.org/repos/asf/ignite/tree/7ee88359
Diff: http://git-wip-us.apache.org/repos/asf/ignite/diff/7ee88359

Branch: refs/heads/ignite-843-rc2
Commit: 7ee88359b42d2d42acd33ec87f6968d0c22f11cd
Parents: 6c5dfcc
Author: AKuznetsov <ak...@gridgain.com>
Authored: Wed Dec 2 19:58:41 2015 +0700
Committer: AKuznetsov <ak...@gridgain.com>
Committed: Wed Dec 2 19:58:41 2015 +0700

----------------------------------------------------------------------
 modules/control-center-web/src/main/js/app.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/7ee88359/modules/control-center-web/src/main/js/app.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/app.js b/modules/control-center-web/src/main/js/app.js
index 235cac8..4c7a5de 100644
--- a/modules/control-center-web/src/main/js/app.js
+++ b/modules/control-center-web/src/main/js/app.js
@@ -56,7 +56,7 @@ app.set('view engine', 'html');
 
 app.use(logger('dev', {
     skip: function (req, res) {
-        return res.statusCode < 400
+        return res.statusCode < 400;
     }
 }));
 
@@ -140,7 +140,9 @@ config.findIgniteModules()
 // Catch 404 and forward to error handler.
 app.use(function (req, res, next) {
     var err = new Error('Not Found: ' + req.originalUrl);
+
     err.status = 404;
+
     next(err);
 });
 
@@ -150,6 +152,7 @@ app.use(function (req, res, next) {
 if (app.get('env') === 'development') {
     app.use(function (err, req, res) {
         res.status(err.status || 500);
+
         res.render('error', {
             message: err.message,
             error: err
@@ -160,6 +163,7 @@ if (app.get('env') === 'development') {
 // Production error handler: no stacktraces leaked to user.
 app.use(function (err, req, res) {
     res.status(err.status || 500);
+
     res.render('error', {
         message: err.message,
         error: {}