Show error instead of warning

This commit is contained in:
Florian Bruhin 2017-12-02 14:49:06 +01:00
parent f1f573d651
commit ce46b30a1e
2 changed files with 2 additions and 2 deletions

View File

@ -1645,7 +1645,7 @@ class CommandDispatcher:
try: try:
elem.set_value(text) elem.set_value(text)
except webelem.OrphanedError as e: except webelem.OrphanedError as e:
message.warning('Edited element vanished') message.error('Edited element vanished')
except webelem.Error as e: except webelem.Error as e:
raise cmdexc.CommandError(str(e)) raise cmdexc.CommandError(str(e))

View File

@ -126,7 +126,7 @@ Feature: Opening external editors
And I set tabs.last_close to blank And I set tabs.last_close to blank
And I run :tab-close And I run :tab-close
And I kill the waiting editor And I kill the waiting editor
Then the warning "Edited element vanished" should be shown Then the error "Edited element vanished" should be shown
@qtwebengine_todo: Caret mode is not implemented yet @qtwebengine_todo: Caret mode is not implemented yet
Scenario: Spawning an editor in caret mode Scenario: Spawning an editor in caret mode