fix(core): Throw exception instead of returning it (no-changelog) (#15597)

This commit is contained in:
Andreas Fitzek
2025-05-22 15:11:00 +02:00
committed by GitHub
parent 3743a8c33d
commit 9f3e682099

View File

@@ -493,7 +493,7 @@ export class SourceControlService {
if (options.direction === 'pull' && !hasGlobalScope(user, 'sourceControl:pull')) { if (options.direction === 'pull' && !hasGlobalScope(user, 'sourceControl:pull')) {
// A pull is only allowed by global admins or owners // A pull is only allowed by global admins or owners
return new ForbiddenError('You do not have permission to pull from source control'); throw new ForbiddenError('You do not have permission to pull from source control');
} }
const sourceControlledFiles: SourceControlledFile[] = []; const sourceControlledFiles: SourceControlledFile[] = [];