[notifications] fix segfault because url is not loaded (#2679)
This commit is contained in:
parent
162768bdec
commit
bc9bfa81b2
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ func (cli cliNotifications) NewCommand() *cobra.Command {
|
||||||
if err := require.LAPI(csConfig); err != nil {
|
if err := require.LAPI(csConfig); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
if err := csConfig.LoadAPIClient(); err != nil {
|
||||||
|
return fmt.Errorf("loading api client: %w", err)
|
||||||
|
}
|
||||||
if err := require.Notifications(csConfig); err != nil {
|
if err := require.Notifications(csConfig); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue