mirror of
https://github.com/abapGit/abapGit.git
synced 2025-04-30 20:03:20 +08:00
Add object type to error message (#6714)
Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
parent
fbd9e70fa5
commit
30a752e0f8
|
@ -45,8 +45,9 @@ CLASS zcl_abapgit_transport_objects IMPLEMENTATION.
|
|||
CASE ls_object_status-lstate.
|
||||
WHEN zif_abapgit_definitions=>c_state-added OR zif_abapgit_definitions=>c_state-modified.
|
||||
IF ls_transport_object-delflag = abap_true.
|
||||
zcx_abapgit_exception=>raise( |Object { ls_transport_object-obj_name
|
||||
} should be added/modified, but has deletion flag in transport| ).
|
||||
zcx_abapgit_exception=>raise( |Object { ls_transport_object-object }|
|
||||
&& | { ls_transport_object-obj_name } should be added/modified,|
|
||||
&& | but has deletion flag in transport| ).
|
||||
ENDIF.
|
||||
|
||||
READ TABLE is_stage_objects-local
|
||||
|
@ -55,8 +56,8 @@ CLASS zcl_abapgit_transport_objects IMPLEMENTATION.
|
|||
item-obj_type = ls_transport_object-object
|
||||
file-filename = ls_object_status-filename.
|
||||
IF sy-subrc <> 0.
|
||||
zcx_abapgit_exception=>raise( |Object { ls_transport_object-obj_name
|
||||
} not found in the local repository files| ).
|
||||
zcx_abapgit_exception=>raise( |Object { ls_transport_object-object }|
|
||||
&& | { ls_transport_object-obj_name } not found in the local repository files| ).
|
||||
ELSE.
|
||||
io_stage->add(
|
||||
iv_path = ls_local_file-file-path
|
||||
|
@ -71,8 +72,9 @@ CLASS zcl_abapgit_transport_objects IMPLEMENTATION.
|
|||
AND ls_transport_object-object <> 'IWMO'
|
||||
AND ls_transport_object-object <> 'IWSG'
|
||||
AND ls_transport_object-object <> 'IWSV'.
|
||||
zcx_abapgit_exception=>raise( |Object { ls_transport_object-obj_name
|
||||
} should be removed, but has NO deletion flag in transport| ).
|
||||
zcx_abapgit_exception=>raise( |Object { ls_transport_object-object }|
|
||||
&& | { ls_transport_object-obj_name } should be removed,|
|
||||
&& | but has NO deletion flag in transport| ).
|
||||
ENDIF.
|
||||
io_stage->rm(
|
||||
iv_path = ls_object_status-path
|
||||
|
|
|
@ -184,7 +184,7 @@ CLASS ltcl_transport_objects IMPLEMENTATION.
|
|||
iv_filename = 'CL_FOO.abap'
|
||||
iv_path = '/path'
|
||||
iv_data = 'data' ).
|
||||
then_it_should_raise_exception( 'Object CL_FOO not found in the local repository files' ).
|
||||
then_it_should_raise_exception( 'Object CLAS CL_FOO not found in the local repository files' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD cant_be_added_with_del_flag.
|
||||
|
@ -198,7 +198,7 @@ CLASS ltcl_transport_objects IMPLEMENTATION.
|
|||
iv_obj_type = 'CLAS'
|
||||
iv_lstate = zif_abapgit_definitions=>c_state-added ).
|
||||
|
||||
then_it_should_raise_exception( 'Object CL_FOO should be added/modified, but has deletion flag in transport' ).
|
||||
then_it_should_raise_exception( 'Object CLAS CL_FOO should be added/modified, but has deletion flag in transport' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD cant_be_modified_with_del_flag.
|
||||
|
@ -212,7 +212,7 @@ CLASS ltcl_transport_objects IMPLEMENTATION.
|
|||
iv_obj_type = 'CLAS'
|
||||
iv_lstate = zif_abapgit_definitions=>c_state-modified ).
|
||||
|
||||
then_it_should_raise_exception( 'Object CL_FOO should be added/modified, but has deletion flag in transport' ).
|
||||
then_it_should_raise_exception( 'Object CLAS CL_FOO should be added/modified, but has deletion flag in transport' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD deleted_to_removed_files.
|
||||
|
@ -360,7 +360,7 @@ CLASS ltcl_transport_objects IMPLEMENTATION.
|
|||
iv_path = '/a_path'
|
||||
iv_lstate = zif_abapgit_definitions=>c_state-deleted ).
|
||||
|
||||
then_it_should_raise_exception( 'Object CL_FOO should be removed, but has NO deletion flag in transport' ).
|
||||
then_it_should_raise_exception( 'Object CLAS CL_FOO should be removed, but has NO deletion flag in transport' ).
|
||||
ENDMETHOD.
|
||||
|
||||
METHOD given_the_transport_object.
|
||||
|
|
Loading…
Reference in New Issue
Block a user