Improve error message for QtWebEngine inspector
This commit is contained in:
parent
0236255a7e
commit
06bccfeb78
@ -43,8 +43,8 @@ class WebEngineInspector(inspector.AbstractWebInspector):
|
||||
port = int(os.environ['QTWEBENGINE_REMOTE_DEBUGGING'])
|
||||
except KeyError:
|
||||
raise inspector.WebInspectorError(
|
||||
"Debugging is not enabled. See 'qutebrowser --help' for "
|
||||
"details.")
|
||||
"QtWebEngine inspector is not enabled. See "
|
||||
"'qutebrowser --help' for details.")
|
||||
url = QUrl('http://localhost:{}/'.format(port))
|
||||
self._widget.load(url)
|
||||
self.show()
|
||||
|
@ -166,7 +166,7 @@ Feature: Various utility commands.
|
||||
@qtwebkit_skip
|
||||
Scenario: Inspector without --enable-webengine-inspector
|
||||
When I run :inspector
|
||||
Then the error "Debugging is not enabled. See 'qutebrowser --help' for details." should be shown
|
||||
Then the error "QtWebEngine inspector is not enabled. See 'qutebrowser --help' for details." should be shown
|
||||
|
||||
@no_xvfb @posix @qtwebengine_skip
|
||||
Scenario: Inspector smoke test
|
||||
|
Loading…
Reference in New Issue
Block a user