@@ -238,9 +238,10 @@ module.exports = React.createClass({
238238 self . _refreshFromServer ( ) ;
239239 } , function ( error ) {
240240 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
241+ console . error ( "Failed to change settings: " + error ) ;
241242 Modal . createDialog ( ErrorDialog , {
242- title : "Can't change settings " ,
243- description : error . toString ( ) ,
243+ title : "Error " ,
244+ description : "Failed to change settings" ,
244245 onFinished : self . _refreshFromServer
245246 } ) ;
246247 } ) ;
@@ -307,9 +308,10 @@ module.exports = React.createClass({
307308 self . _refreshFromServer ( ) ;
308309 } , function ( error ) {
309310 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
311+ console . error ( "Can't update user notification settings: " + error ) ;
310312 Modal . createDialog ( ErrorDialog , {
311- title : "Can't update user notification settings " ,
312- description : error . toString ( ) ,
313+ title : "Error " ,
314+ description : "Can't update user notification settings" ,
313315 onFinished : self . _refreshFromServer
314316 } ) ;
315317 } ) ;
@@ -348,9 +350,10 @@ module.exports = React.createClass({
348350
349351 var onError = function ( error ) {
350352 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
353+ console . error ( "Failed to update keywords: " + error ) ;
351354 Modal . createDialog ( ErrorDialog , {
352- title : "Can't update keywords " ,
353- description : error . toString ( ) ,
355+ title : "Error " ,
356+ description : "Failed to update keywords" ,
354357 onFinished : self . _refreshFromServer
355358 } ) ;
356359 }
0 commit comments