diff options
author | Nick Thomas <gitlab@ur.gs> | 2016-04-21 20:33:08 +0300 |
---|---|---|
committer | James Edwards-Jones <jedwardsjones@gitlab.com> | 2017-02-01 01:55:32 +0300 |
commit | fd61cd08ceb6d05b6e1bf103c60add02bdd3edbe (patch) | |
tree | 64ad229573f93ef4508e375cd1616e8fe9961160 /app/services/projects/update_pages_service.rb | |
parent | 2c1eeb5c73d625b0f4481e8a7985d95071e7640c (diff) |
pages: Fix "undefined local variable or method `total_size'" when maximum page size is exceeded
Diffstat (limited to 'app/services/projects/update_pages_service.rb')
-rw-r--r-- | app/services/projects/update_pages_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/update_pages_service.rb b/app/services/projects/update_pages_service.rb index ceabd29fd52..45a28b46d06 100644 --- a/app/services/projects/update_pages_service.rb +++ b/app/services/projects/update_pages_service.rb @@ -85,7 +85,7 @@ module Projects public_entry = build.artifacts_metadata_entry(SITE_PATH, recursive: true) if public_entry.total_size > max_size - raise "artifacts for pages are too large: #{total_size}" + raise "artifacts for pages are too large: #{public_entry.total_size}" end # Requires UnZip at least 6.00 Info-ZIP. |