diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 18:17:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-04 18:17:13 +0300 |
commit | 4bdfcf93f224edb9c4daff90d95b0c6c92766ea3 (patch) | |
tree | cedf1f94561571d00033c48846ad3959af64449b /app/services/packages | |
parent | fb5d3cceb8d43f8c2dc22a5d8c74327e9397f2e8 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/packages')
-rw-r--r-- | app/services/packages/npm/create_package_service.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/packages/npm/create_package_service.rb b/app/services/packages/npm/create_package_service.rb index aa535fc7775..c71ae060dd9 100644 --- a/app/services/packages/npm/create_package_service.rb +++ b/app/services/packages/npm/create_package_service.rb @@ -10,6 +10,7 @@ module Packages def execute return error('Version is empty.', 400) if version.blank? + return error('Attachment data is empty.', 400) if attachment['data'].blank? return error('Package already exists.', 403) if current_package_exists? return error('File is too large.', 400) if file_size_exceeded? |