Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
30395cf2
Commit
30395cf2
authored
May 17, 2022
by
Lucas Felix
Browse files
Add parenthesis to 'last_error' hints
parent
20c769df
Changes
5
Hide whitespace changes
Inline
Side-by-side
bliss/common/session.py
View file @
30395cf2
...
...
@@ -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
}
]"
...
...
doc/docs/config_wago.md
View file @
30395cf2
...
...
@@ -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
()
'
)
```
doc/docs/shell_cmdline.md
View file @
30395cf2
...
...
@@ -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
...
...
doc/docs/shell_obj_protection.md
View file @
30395cf2
...
...
@@ -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
...
...
tests/shell/test_bliss_shell_basics.py
View file @
30395cf2
...
...
@@ -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
()
' )"
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment