Skip to content

Commit

Permalink
error message
Browse files Browse the repository at this point in the history
  • Loading branch information
ebiiim committed Dec 25, 2023
1 parent 429031f commit 241af17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/handlers/slashcmd_roanav.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ func (h *ROANavHandler) HandleCmdRoutePrint(s *discordgo.Session, i *discordgo.I
// Validate.
if nav.Portals == nil || len(nav.Portals) == 0 {
lg.Error().Err(fmt.Errorf("no portals")).Msg("len(nav.Portals) == 0")
if mErr := respondEphemeralMessage(s, i, "エラー: 有効なルートが1個もないわん。 `/route-add` で追加してからまた試してほしいわん。"); mErr != nil {
if mErr := respondEphemeralMessage(s, i, "エラー: 有効なルートがないわん。 `/route-list` で確認したり `/route-add` で追加したりしてわん!"); mErr != nil {
lg.Error().Err(mErr).Msg("could not send InteractionResponse")
}
return
Expand Down

0 comments on commit 241af17

Please sign in to comment.