diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-04-10 13:46:57 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-04-10 13:46:57 +0100 |
| commit | 83ac75808b14862531b046f51f90014d7dea621e (patch) | |
| tree | c5a08546bf69da3809bbb633c9395e58428e9d03 /browser | |
| parent | 0c131afbe82cedeef9815d11428414d6dc663ae7 (diff) | |
Fix error when a zip file cannot be opened
Diffstat (limited to 'browser')
| -rw-r--r-- | browser/unzip.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/browser/unzip.js b/browser/unzip.js index 50cbf28..2395fb3 100644 --- a/browser/unzip.js +++ b/browser/unzip.js @@ -8,7 +8,7 @@ function openZip(options) { if (options.arrayBuffer) { return openArrayBuffer(options.arrayBuffer); } else { - return q.reject(new Error("Could not find file in options")); + return promises.reject(new Error("Could not find file in options")); } } |
