Serialzie: Improve exception handling (#2831)

This commit is contained in:
Christian Günter 2019-08-03 07:06:23 +02:00 committed by Lars Hvam
parent e379dd3cfe
commit 5cd2044745

View File

@ -248,7 +248,9 @@ CLASS ZCL_ABAPGIT_SERIALIZE IMPLEMENTATION.
iv_path = is_tadir-path ). iv_path = is_tadir-path ).
CATCH zcx_abapgit_exception INTO lx_error. CATCH zcx_abapgit_exception INTO lx_error.
IF NOT mi_log IS INITIAL. IF NOT mi_log IS INITIAL.
mi_log->add_error( lx_error->get_text( ) ). mi_log->add_exception(
ix_exc = lx_error
is_item = ls_fils_item-item ).
ENDIF. ENDIF.
ENDTRY. ENDTRY.