Skip to content

Commit

Permalink
🐛 add console.error
Browse files Browse the repository at this point in the history
  • Loading branch information
germanattanasio committed Jun 23, 2016
1 parent 4c9f0ef commit a26eb21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/error-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = function(app) {
code: err.code || 500,
error: err.error || err.message
};
console.error(error);
res.status(error.code).json(error);
});
};
3 changes: 1 addition & 2 deletions views/index.ejs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="css/style.css">
<title>AlchemyLanguage | IBM Watson Developer Cloud</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
Expand All @@ -11,6 +10,7 @@
<meta property="og:description" content="AlchemyLanguage is a collection of APIs that offer text analysis through natural language processing. This set of APIs can analyze text to help you understand its concepts, entities, keywords, sentiment, and more."
/>
<link rel="shortcut icon" href="/images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/app.css">
</head>
<body>
Expand Down Expand Up @@ -1181,6 +1181,5 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script type="text/javascript" src="js/demo.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
</body>
</html>

0 comments on commit a26eb21

Please sign in to comment.