Clarify error messages about folder logic (#6447)

This commit is contained in:
Marc Bernard 2023-08-30 12:14:01 -04:00 committed by GitHub
parent 1b3114d794
commit d51b12c445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,19 +116,21 @@ CLASS zcl_abapgit_folder_logic IMPLEMENTATION.
lv_len = strlen( lv_parentcl ).
IF iv_package(lv_len) <> lv_parentcl.
* if abapGit project is installed in package ZZZ, all subpackages should be named
* ZZZ_something. This will define the folder name in the zip file to be "something",
* similarily with online projects. Alternatively change to FULL folder logic
lv_message = 'PREFIX: Unexpected package naming (' && iv_package && ')'
&& 'you might switch the folder logic'.
" If abapGit project is installed in package ZZZ, all subpackages should be named
" ZZZ_something. This will define the folder name in the zip file to be "something",
" similarily with online projects. Alternatively change to FULL folder logic
lv_message = |PREFIX: Unexpected package naming |
&& |(top: { iv_top }, parent: { lv_parentcl }, child: { iv_package }). |
&& |Try using the folder logic FULL|.
zcx_abapgit_exception=>raise( lv_message ).
ENDIF.
WHEN zif_abapgit_dot_abapgit=>c_folder_logic-mixed.
lv_len = strlen( iv_top ).
IF iv_package(lv_len) <> iv_top.
lv_message = 'MIXED: Unexpected package naming (' && iv_package && ')'
&& 'you might switch the folder logic'.
lv_message = |MIXED: Unexpected package naming |
&& |(top: { iv_top }, parent: { lv_parentcl }, child: { iv_package }). |
&& |Try using the folder logic FULL|.
zcx_abapgit_exception=>raise( lv_message ).
ENDIF.
WHEN OTHERS.