better lock error message

This commit is contained in:
larshp 2016-07-14 07:51:55 +00:00
parent 7dab60b3a6
commit b7f686b353

View File

@ -1076,6 +1076,9 @@ CLASS lcl_persistence_db IMPLEMENTATION.
METHOD lock.
DATA: lv_msg TYPE string.
CALL FUNCTION 'ENQUEUE_EZABAPGIT'
EXPORTING
mode_zabapgit = iv_mode
@ -1086,7 +1089,8 @@ CLASS lcl_persistence_db IMPLEMENTATION.
system_failure = 2
OTHERS = 3.
IF sy-subrc <> 0.
_raise 'Could not aquire lock'.
lv_msg = |Could not aquire lock { iv_type } { iv_value }|.
_raise lv_msg.
ENDIF.
* trigger dummy update task to automatically release locks at commit