diff --git a/reflex/state.py b/reflex/state.py index aa40a8418..e454746a9 100644 --- a/reflex/state.py +++ b/reflex/state.py @@ -3350,7 +3350,7 @@ class StateManagerRedis(StateManager): state_cls = self.state.get_class_substate(state_path) else: raise RuntimeError( - "StateManagerRedis requires token to be specified in the form of {token}_{state_full_name}" + f"StateManagerRedis requires token to be specified in the form of {{token}}_{{state_full_name}}, but got {token}" ) # The deserialized or newly created (sub)state instance.