Open notrab opened 3 months ago
The original issue #894 also stated that db shell
would return the same error. We can use the method there, but I'm not sure where is best considering db shell
can be used with local URL, and the groups concept doesn't yet apply there...
spinner.Stop()
awake, err := ensureGroupAwake(client, db.Group)
if err != nil {
return err
}
if !awake {
return fmt.Errorf("cannot connect to a database in an archived group. Please wake up the group first")
}
spinner.Start()
I pushed a commit to db_shell.go
where I believe is the right place to check, but we can remove that if it's not correct.
Fixes #894
This does however use a mix of the
sleeping
andarchived
terminology. We should clean that up when we know which word we want to go with.