From 9b33868ec45b46efce944271a838f0bc13963c56 Mon Sep 17 00:00:00 2001 From: asari <42676682+MotoyaAsahina@users.noreply.github.com> Date: Wed, 5 Jan 2022 00:35:05 +0900 Subject: [PATCH] =?UTF-8?q?fix=20fmt.Sprintf=E3=81=8C=E6=8A=9C=E3=81=91?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index b52505d..3142e81 100644 --- a/server.go +++ b/server.go @@ -154,7 +154,7 @@ func (sc *ServerRestartCommand) Execute(ctx *Context) error { token, err := getConohaAPIToken() if err != nil { ctx.L().Error("failed to get ConoHa API token", zap.Error(err)) - return ctx.ReplyFailure(":x: An error has occurred while getting ConoHa API token. Please retry after a while. %s", cite(ctx.P.Message.ID)) + return ctx.ReplyFailure(fmt.Sprintf(":x: An error has occurred while getting ConoHa API token. Please retry after a while. %s", cite(ctx.P.Message.ID))) } req, err := sling.New().