Skip to content
Snippets Groups Projects
Commit cac414ea authored by Zygmunt Krynicki's avatar Zygmunt Krynicki
Browse files

ota: log failures to remove temporary state when recovering frome errors


Signed-off-by: default avatarZygmunt Krynicki <zygmunt.krynicki@huawei.com>
parent b956d706
No related branches found
No related tags found
No related merge requests found
......@@ -144,7 +144,10 @@ func SaveState(state *SystemState, name string) (err error) {
// Remove the temporary if we have not renamed it yet.
if !renamed {
_ = os.Remove(f.Name())
e2 := os.Remove(f.Name())
if e2 != nil {
_, _ = fmt.Fprintf(os.Stderr, "%v", e2)
}
}
}()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment