mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
A pair of SFPF and PROG error messages with more details (#2588)
* sfpf: make deserialization errors more verbose Just to make debugging a little be easier. * prog: make updating errors more verbose For simpler debugging.
This commit is contained in:
parent
c7f21c2a5b
commit
00a378a42b
|
@ -215,7 +215,8 @@ CLASS ZCL_ABAPGIT_OBJECT_SFPF IMPLEMENTATION.
|
|||
lv_layout TYPE xstring,
|
||||
lv_name TYPE fpname,
|
||||
li_wb_object TYPE REF TO if_fp_wb_form,
|
||||
li_form TYPE REF TO if_fp_form.
|
||||
li_form TYPE REF TO if_fp_form,
|
||||
lx_fp_err TYPE REF TO cx_fp_api.
|
||||
|
||||
|
||||
lv_name = ms_item-obj_name.
|
||||
|
@ -238,8 +239,8 @@ CLASS ZCL_ABAPGIT_OBJECT_SFPF IMPLEMENTATION.
|
|||
i_form = li_form ).
|
||||
li_wb_object->save( ).
|
||||
li_wb_object->free( ).
|
||||
CATCH cx_fp_api.
|
||||
zcx_abapgit_exception=>raise( 'SFPF error, deserialize' ).
|
||||
CATCH cx_fp_api INTO lx_fp_err.
|
||||
zcx_abapgit_exception=>raise( |SFPF deserialization error: { lx_fp_err->get_text( ) }| ).
|
||||
ENDTRY.
|
||||
|
||||
zcl_abapgit_objects_activation=>add_item( ms_item ).
|
||||
|
|
|
@ -459,7 +459,7 @@ CLASS ZCL_ABAPGIT_OBJECTS_PROGRAM IMPLEMENTATION.
|
|||
IF sy-msgid = 'EU' AND sy-msgno = '510'.
|
||||
zcx_abapgit_exception=>raise( 'User is currently editing program' ).
|
||||
ELSE.
|
||||
zcx_abapgit_exception=>raise( 'PROG, error updating' ).
|
||||
zcx_abapgit_exception=>raise( |PROG { is_progdir-name }, updating error: { sy-msgid } { sy-msgno }| ).
|
||||
ENDIF.
|
||||
ENDIF.
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user