mirror of
https://github.com/abapGit/abapGit.git
synced 2025-05-01 12:20:51 +08:00
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:
parent
6d2deece76
commit
0a67f95c11
|
@ -600,7 +600,12 @@ CLASS ZCL_ABAPGIT_GUI_PAGE_STAGE IMPLEMENTATION.
|
|||
WITH TABLE KEY
|
||||
path = ls_file-path
|
||||
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.
|
||||
WHEN zif_abapgit_definitions=>c_method-add.
|
||||
|
|
Loading…
Reference in New Issue
Block a user