mirror of https://github.com/vbatts/go-mtree.git
handle error
This commit is contained in:
parent
b062bc1c68
commit
2234e565ae
|
@ -117,7 +117,10 @@ skip:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
spec.WriteTo(writer)
|
_, err = spec.WriteTo(writer)
|
||||||
|
if err != nil {
|
||||||
|
return fmt.Errorf("writing mtree %s: %w", outputPath, err)
|
||||||
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue