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:
Lars Hvam 2019-02-24 22:46:02 -08:00 committed by GitHub
parent ea40225d1c
commit 34e8e0bb69
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 4 deletions

View File

@ -133,8 +133,9 @@ CLASS ZCL_ABAPGIT_OBJECT_DDLS IMPLEMENTATION.
EXPORTING
name = ms_item-obj_name.
CATCH cx_root INTO lx_error.
zcx_abapgit_exception=>raise( iv_text = lx_error->get_text( )
ix_previous = lx_error ).
zcx_abapgit_exception=>raise(
iv_text = |DDLS, { ms_item-obj_name } { lx_error->get_text( ) }|
ix_previous = lx_error ).
ENDTRY.
ENDMETHOD.

View File

@ -136,7 +136,7 @@ CLASS ZCL_ABAPGIT_OBJECT_SUSO IMPLEMENTATION.
ed_mode_head = lv_act_head.
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.
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.
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.