diff --git a/ota/state.go b/ota/state.go
index f77c81ab838d5c16b229bbe998195811b29efea4..504e3bc39abd9c84d5504da44115e29813ab1407 100644
--- a/ota/state.go
+++ b/ota/state.go
@@ -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)
+			}
 		}
 	}()