You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If we're requesting the old version mid-upgrade, assume that we're downgrading.
817
836
// We only support downgrading to the exact previous version.
818
-
Some(UpgradeState::Downgrading)
837
+
Ok(Some(UpgradeState::Downgrading))
819
838
}else{
820
839
// All three versions match, upgrade was completed without clearing `upgrading_product_version`.
821
-
None
840
+
Ok(None)
822
841
}
823
842
}
824
843
@@ -984,6 +1003,17 @@ pub enum UpgradeState {
984
1003
Downgrading,
985
1004
}
986
1005
1006
+
#[derive(Debug,Snafu)]
1007
+
#[snafu(module)]
1008
+
pubenumUpgradeStateError{
1009
+
#[snafu(display("requested version {requested_version:?} while still upgrading from {deployed_version:?} to {upgrading_version:?}, please finish the upgrade or downgrade first"))]
0 commit comments