Skip to content

Commit

Permalink
Fixing ember warning of Logger deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
rhilliar committed May 3, 2019
1 parent 97e4928 commit 8746def
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fastboot/initializers/error-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import Ember from 'ember';
export default {
name: 'error-handler',

initialize: function(application) {
initialize: function() {
if (!Ember.onerror) {
// if no onerror handler is defined, define one for fastboot environments
Ember.onerror = function(err) {
let errorMessage = `There was an error running your app in fastboot. More info about the error: \n ${err.stack || err}`;
Ember.Logger.error(errorMessage);
const errorMessage = `There was an error running your app in fastboot. More info about the error: \n ${err.stack || err}`;
console.error(errorMessage);
}
}
}
Expand Down

0 comments on commit 8746def

Please sign in to comment.