mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2024-11-05 13:14:48 +01:00
Check for errors on forget after having backuped (#241)
This commit is contained in:
parent
874ed52e3b
commit
3732dcf6ff
@ -308,7 +308,10 @@ after:
|
|||||||
|
|
||||||
// Forget and optionally prune
|
// Forget and optionally prune
|
||||||
if isSuccess && l.ForgetOption != "" && l.ForgetOption != LocationForgetNo {
|
if isSuccess && l.ForgetOption != "" && l.ForgetOption != LocationForgetNo {
|
||||||
l.Forget(l.ForgetOption == LocationForgetPrune, false)
|
err := l.Forget(l.ForgetOption == LocationForgetPrune, false)
|
||||||
|
if err != nil {
|
||||||
|
errors = append(errors, err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(errors) == 0 {
|
if len(errors) == 0 {
|
||||||
|
Loading…
Reference in New Issue
Block a user