Report failures
This commit is contained in:
parent
32f9a6ec43
commit
9e1a1ab4b5
1 changed files with 4 additions and 1 deletions
|
|
@ -557,6 +557,9 @@ class VariablesView( object ):
|
|||
variable.Update( new_variable )
|
||||
view.draw()
|
||||
|
||||
def failure_handler( reason, message ):
|
||||
utils.UserMessage( f'Cannot set value: { reason }', error = True )
|
||||
|
||||
self._connection.DoRequest( handler, {
|
||||
'command': 'setVariable',
|
||||
'arguments': {
|
||||
|
|
@ -564,7 +567,7 @@ class VariablesView( object ):
|
|||
'name': variable.variable[ 'name' ],
|
||||
'value': new_value
|
||||
},
|
||||
} )
|
||||
}, failure_handler = failure_handler )
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue