Improve message for subpackage errors (#4911)

Clarify error and resolution options in case subpackage already exists in system but is not included in pack hierarchy of repo root package.

Closes #4904
This commit is contained in:
Marc Bernard 2021-08-27 12:58:12 -04:00 committed by GitHub
parent f2a801ad1a
commit 6b81d7d958
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -144,7 +144,7 @@ ENDCLASS.
CLASS ZCL_ABAPGIT_FILE_STATUS IMPLEMENTATION. CLASS zcl_abapgit_file_status IMPLEMENTATION.
METHOD build_existing. METHOD build_existing.
@ -592,9 +592,9 @@ CLASS ZCL_ABAPGIT_FILE_STATUS IMPLEMENTATION.
" is required i.e. setting a parent package to iv_devclass (or one of its " is required i.e. setting a parent package to iv_devclass (or one of its
" subpackages). We don't this automatically since it's not clear where in the " subpackages). We don't this automatically since it's not clear where in the
" hierarchy the new package should be located. (#4108) " hierarchy the new package should be located. (#4108)
lv_msg = |Package { ls_item-devclass } is not a subpackage of { iv_devclass lv_msg = |Package { ls_item-devclass } already exists but is not a subpackage of { iv_devclass
}. Assign { ls_item-devclass } to package hierarchy of { iv_devclass }. Check your package and folder logic or assign { ls_item-devclass
} and repeat process.|. } to package hierarchy of { iv_devclass } to match the repository.|.
zcx_abapgit_exception=>raise( lv_msg ). zcx_abapgit_exception=>raise( lv_msg ).
ELSE. ELSE.
CLEAR ls_item-devclass. CLEAR ls_item-devclass.