Commit 897796f
committed
Narrow catch clause in createArchive() to MavenArchiverException
Instead of catching the broad Exception type, catch only
MavenArchiverException which is the specific checked exception
that createArchive() declares. ArchiverException (from
addDirectory) is a RuntimeException and propagates naturally.1 parent 2cd6685 commit 897796f
1 file changed
Lines changed: 1 addition & 2 deletions
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
292 | | - | |
| 291 | + | |
293 | 292 | | |
294 | 293 | | |
295 | 294 | | |
| |||
0 commit comments