Browse Source

Fix `.reason` match for file size warnings

master
Tony Kovanen 9 years ago
parent
commit
5caa1dc8f4
  1. 2
      lib/index.js

2
lib/index.js

@ -113,7 +113,7 @@ export default class Now extends EventEmitter {
if (deployment.warnings) {
let sizeExceeded = 0;
deployment.warnings.forEach(({ reason, sha, limit }) => {
if ('size_exceeded' === reason) {
if ('size_limit_exceeded' === reason) {
console.error('> \u001b[31mWarning!\u001b[39m Skipping file %s (size exceeded %s)',
hashes.get(sha),
bytes(limit)

Loading…
Cancel
Save