This repository was archived by the owner on Mar 4, 2020. It is now read-only.
Commit 0eb0a0a
committed
Throw exception if extension doesn't exist.
Update to make extractTo() throw an exception if the Firefox extension .xpi file doesn't exist, which should be the desired behavior.
Currently extractTo() only throws an error if the .xpi file exists AND is unable to open.
ZipArchive throws some Warning messages when you use extractTo() and close() on an initialized ZipArchive object which is the case if the file doesn't exist.1 parent 787e71d commit 0eb0a0a
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | | - | |
253 | | - | |
254 | | - | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
255 | 259 | | |
256 | | - | |
| 260 | + | |
257 | 261 | | |
258 | 262 | | |
259 | 263 | | |
| |||
0 commit comments