Skip to content

Commit 05dec2b

Browse files
committedJun 13, 2013
Show error on console only if debug mode is activated - template
1 parent b4ec1f2 commit 05dec2b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎templates/index.js.tpl

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ var GithubHandler = module.exports = function(client) {
2424

2525
var proto = {
2626
sendError: function(err, block, msg, callback) {
27-
Util.log(err, block, msg.user, "error");
27+
if (this.client.debug)
28+
Util.log(err, block, msg.user, "error");
2829
if (typeof err == "string")
2930
err = new error.InternalServerError(err);
3031
if (callback)

0 commit comments

Comments
 (0)