Skip to content

Commit

Permalink
logger
Browse files Browse the repository at this point in the history
  • Loading branch information
jasoniangreen committed Oct 22, 2014
1 parent 0f11515 commit 371c094
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/util/promise.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var _ = require('mol-proto');
var _ = require('mol-proto')
, logger = require('./logger');

module.exports = Promise;

Expand Down Expand Up @@ -163,6 +164,7 @@ function Promise$transform(transformDataFunc) {
var transformedData = transformDataFunc(data);
promise.setData(error, transformedData);
} catch (e) {
logger.error('Promise transform error');
promise.setData(e);
}
})
Expand Down

0 comments on commit 371c094

Please sign in to comment.