Replace assert in gui_page_stage with check (#3392)

* Update zcl_abapgit_gui_page_stage.clas.abap

* Change to exception

* add reference to issue as comment in code

* Update zcl_abapgit_gui_page_stage.clas.abap

Co-authored-by: Lars Hvam <larshp@hotmail.com>
This commit is contained in:
Frederik Hudák 2020-05-23 11:42:41 +02:00 committed by GitHub
parent 6d2deece76
commit 0a67f95c11
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -600,7 +600,12 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_STAGE IMPLEMENTATION.
WITH TABLE KEY WITH TABLE KEY
path = ls_file-path path = ls_file-path
filename = ls_file-filename. filename = ls_file-filename.
ASSERT sy-subrc = 0. IF sy-subrc <> 0.
* see https://github.com/larshp/abapGit/issues/3073
zcx_abapgit_exception=>raise( iv_text =
|Unable to stage { ls_file-filename }. If the filename contains spaces, this is a known issue.| &&
| Consider ignoring or staging the file at a later time.| ).
ENDIF.
CASE <ls_item>-value. CASE <ls_item>-value.
WHEN zif_abapgit_definitions=>c_method-add. WHEN zif_abapgit_definitions=>c_method-add.