Skip to content

Commit

Permalink
improved error / warning output for bks_move
Browse files Browse the repository at this point in the history
- not feasible warnings are now counted properly
  • Loading branch information
DirkOsswald committed Jun 18, 2024
1 parent 733e7cf commit 9b051a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bkstools/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@
#
# From newest to oldest the releases have the following names and features:
#
# - \b 0.0.2.29 2024-06-18
# - improved error / warning output for bks_move (not feasible warnings are now counted properly)
#
# - \b 0.0.2.28 2024-06-18
# - improved error checking in bks_move
# - added caching for constant parameters to avoid unnecessary communication
Expand All @@ -99,7 +102,7 @@
# - Initial internal "release" of the code
# - Scripts egi, egi_move and egi_ref are working
#
PROJECT_RELEASE = "0.0.2.28"
PROJECT_RELEASE = "0.0.2.29"

## \brief Date of the release of the software project.
#
Expand Down
3 changes: 2 additions & 1 deletion bkstools/scripts/bks_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,10 @@ def CheckForErrors( bks, auto_acknowledge ):
raise ApplicationError( f"Gripper reports error 0x{err_code:02x} ({ec_str}). Giving Up." )

if ( wrn_code == bks.enums["wrn_code"]["WRN_NOT_FEASIBLE"] ):
nb_warnings += 1
bks.sys_msg_req = 0
msg = bks.sys_msg_buffer
raise ApplicationError( f"Gripper reports command not feasible! Details from syslog: {msg}" )
raise ApplicationError( f"Gripper reports command not feasible!\nDetails from syslog: {msg}" )

elif ( wrn_code != 0 ):
nb_warnings += 1
Expand Down

0 comments on commit 9b051a9

Please sign in to comment.