@@ -70,7 +70,7 @@ module.exports = React.createClass({
7070 } ;
7171 } ) . catch ( function ( err ) {
7272 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
73- Modal . createTrackedDialog ( 'Failed to remove tag from room 1' , err . toString ( ) , ErrorDialog , {
73+ Modal . createTrackedDialog ( 'Failed to remove tag from room 1' , '' , ErrorDialog , {
7474 title : _t ( 'Failed to remove tag %(tagName)s from room' , { tagName : tagNameOff } ) ,
7575 description : ( ( err && err . message ) ? err . message : _t ( 'Operation failed' ) ) ,
7676 } ) ;
@@ -87,7 +87,7 @@ module.exports = React.createClass({
8787 } ;
8888 } ) . catch ( function ( err ) {
8989 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
90- Modal . createTrackedDialog ( 'Failed to remove tag from room 2' , err . toString ( ) , ErrorDialog , {
90+ Modal . createTrackedDialog ( 'Failed to remove tag from room 2' , '' , ErrorDialog , {
9191 title : _t ( 'Failed to remove tag %(tagName)s from room' , { tagName : tagNameOn } ) ,
9292 description : ( ( err && err . message ) ? err . message : _t ( 'Operation failed' ) ) ,
9393 } ) ;
@@ -148,7 +148,7 @@ module.exports = React.createClass({
148148 } ;
149149 } , ( err ) => {
150150 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
151- Modal . createTrackedDialog ( 'Failed to set Direct Message status of room' , err . toString ( ) , ErrorDialog , {
151+ Modal . createTrackedDialog ( 'Failed to set Direct Message status of room' , '' , ErrorDialog , {
152152 title : _t ( 'Failed to set Direct Message status of room' ) ,
153153 description : ( ( err && err . message ) ? err . message : _t ( 'Operation failed' ) ) ,
154154 } ) ;
@@ -187,7 +187,7 @@ module.exports = React.createClass({
187187 } , function ( err ) {
188188 var errCode = err . errcode || "unknown error code" ;
189189 var ErrorDialog = sdk . getComponent ( "dialogs.ErrorDialog" ) ;
190- Modal . createTrackedDialog ( 'Failed to forget room' , err . toString ( ) , ErrorDialog , {
190+ Modal . createTrackedDialog ( 'Failed to forget room' , '' , ErrorDialog , {
191191 title : _t ( 'Failed to forget room %(errCode)s' , { errCode : errCode } ) ,
192192 description : ( ( err && err . message ) ? err . message : _t ( 'Operation failed' ) ) ,
193193 } ) ;
0 commit comments