pages: Fix "undefined local variable or method `total_size'" when maximum page size is exceeded

This commit is contained in:
Nick Thomas 2016-04-21 17:33:08 +00:00 committed by James Edwards-Jones
parent 2c1eeb5c73
commit fd61cd08ce

View file

@ -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.