Skip to content

Make all Gitlab::Git exceptions inherit from Gitlab::Git::BaseError

Stan Hu requested to merge sh-consolidate-git-base-errors into master

BaseError sanitizes debug_error_string, which we do to avoid leaking details to the user and polluting Sentry.

This inheritance means code that rescues Gitlab::Git::BaseError needs to rescue Gitlab::Git::Repository::NoRepository earlier.

Relates to #238465

Edited by Stan Hu

Merge request reports

Loading