mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-02 04:36:49 +08:00
Uninstall, fix some error messages (#2451)
* SUSO, fix error message * DDLS error message instead of "Object could not be deleted"
This commit is contained in:
parent
ea40225d1c
commit
34e8e0bb69
|
@ -133,7 +133,8 @@ CLASS ZCL_ABAPGIT_OBJECT_DDLS IMPLEMENTATION.
|
||||||
EXPORTING
|
EXPORTING
|
||||||
name = ms_item-obj_name.
|
name = ms_item-obj_name.
|
||||||
CATCH cx_root INTO lx_error.
|
CATCH cx_root INTO lx_error.
|
||||||
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
|
zcx_abapgit_exception=>raise(
|
||||||
|
iv_text = |DDLS, { ms_item-obj_name } { lx_error->get_text( ) }|
|
||||||
ix_previous = lx_error ).
|
ix_previous = lx_error ).
|
||||||
ENDTRY.
|
ENDTRY.
|
||||||
|
|
||||||
|
|
|
@ -136,7 +136,7 @@ CLASS ZCL_ABAPGIT_OBJECT_SUSO IMPLEMENTATION.
|
||||||
ed_mode_head = lv_act_head.
|
ed_mode_head = lv_act_head.
|
||||||
|
|
||||||
IF lv_act_head <> lc_act_delete.
|
IF lv_act_head <> lc_act_delete.
|
||||||
zcx_abapgit_exception=>raise( |AUTH { mv_objectname }: Delete not allowed| ).
|
zcx_abapgit_exception=>raise( |SUSO { mv_objectname }: Delete not allowed| ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
CALL METHOD lo_suso->('SUSO_COLLECT_IN_CTS')
|
CALL METHOD lo_suso->('SUSO_COLLECT_IN_CTS')
|
||||||
|
@ -146,7 +146,7 @@ CLASS ZCL_ABAPGIT_OBJECT_SUSO IMPLEMENTATION.
|
||||||
ed_result = lv_suso_collect_in_cts.
|
ed_result = lv_suso_collect_in_cts.
|
||||||
|
|
||||||
IF lv_suso_collect_in_cts IS NOT INITIAL.
|
IF lv_suso_collect_in_cts IS NOT INITIAL.
|
||||||
zcx_abapgit_exception=>raise( |AUTH { mv_objectname }: Cannot delete| ).
|
zcx_abapgit_exception=>raise( |SUSO { mv_objectname }: Cannot delete| ).
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
||||||
ENDIF.
|
ENDIF.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user