Commit 30395cf2 authored by Lucas Felix's avatar Lucas Felix
Browse files

Add parenthesis to 'last_error' hints

parent 20c769df
......@@ -982,7 +982,7 @@ class Session:
print("")
if error_count == 1:
print("To learn about failure, type: 'last_error'")
print("To learn about failure, type: 'last_error()'")
else:
print(
f"To learn about failures, type: 'last_error[X]' for X in [0..{error_count-1}]"
......
......@@ -101,7 +101,7 @@ description: ID31 EH I/O Station
module: wago.wago
class: Wago
modbustcp:
url:wcid31l
url:wcid31l
mapping:
- type: 750-476
logical_names: pot1vol, pot1cur
......@@ -223,6 +223,6 @@ BLISS [7]: wago_simulator.get("esTr1", "esTr2","o10v1")
Out [7]: [78.8, -203.4, 44404]
BLISS [8]: wago_simulator.set("esTr1", 0)
!!! === RuntimeError: Cannot write: 'esTr1' is not an output === !!! ( for more details type cmd 'last_error' )
!!! === RuntimeError: Cannot write: 'esTr1' is not an output === !!! ( for more details type cmd 'last_error()' )
```
......@@ -161,7 +161,7 @@ flag), an error message is displayed:
```
-
Connected to Beacon server on linohlsson2 (port /tmp/beacon_dnnmh7vl.sock)
!!! === RuntimeError: demo is already running on host:linohlsson2,pid:8173 cmd: **bliss -s demo** === !!! ( for more details type cmd 'last_error' )
!!! === RuntimeError: demo is already running on host:linohlsson2,pid:8173 cmd: **bliss -s demo** === !!! ( for more details type cmd 'last_error()' )
```
### To quit Tmux
......
......@@ -15,10 +15,10 @@ TEST_SESSION [1]: roby
backlash (R): 2.00000
sign (R): 1
steps_per_unit (R): 10000.00
...
...
TEST_SESSION [2]: roby = 1
!!! === RuntimeError: roby is protected and can not be modified! === !!! ( for more details type cmd 'last_error' )
!!! === RuntimeError: roby is protected and can not be modified! === !!! ( for more details type cmd 'last_error()' )
TEST_SESSION [3]: roby
Out [3]: AXIS:
......@@ -29,7 +29,7 @@ TEST_SESSION [3]: roby
sign (R): 1
steps_per_unit (R): 10000.00
...
```
......@@ -43,7 +43,7 @@ TEST_SESSION [6]: my_important_variable
Out [6]: 3.141
TEST_SESSION [7]: my_important_variable=1
!!! === RuntimeError: my_important_variable is protected and can not be modified! === !!! ( for more details type cmd 'last_error' )
!!! === RuntimeError: my_important_variable is protected and can not be modified! === !!! ( for more details type cmd 'last_error()' )
TEST_SESSION [8]: unprotect('my_important_variable')
TEST_SESSION [9]: my_important_variable=1
......
......@@ -703,7 +703,7 @@ def test_excepthook(shell_excepthook, default_session):
assert (
"".join(print_output)
== "!!! === RuntimeError: excepthook test === !!! ( for more details type cmd 'last_error' )"
== "!!! === RuntimeError: excepthook test === !!! ( for more details type cmd 'last_error()' )"
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment