failing to list or extract a single mpq archive does not fail the entire

operation
This commit is contained in:
Alex Yatskov 2018-12-15 18:18:42 -08:00
parent 5c89a5fa92
commit 9e931a409a

View File

@ -112,14 +112,12 @@ func main() {
for i := 1; i < flag.NArg(); i++ {
if err := list(flag.Arg(i), *filter); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
case "extract":
for i := 1; i < flag.NArg(); i++ {
if err := extract(flag.Arg(i), *filter, *targetDir); err != nil {
fmt.Fprintln(os.Stderr, err)
os.Exit(1)
}
}
default: