diff --git a/README.md b/README.md index 7412f97..8734a2c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ## summaly-go -Misskey(とその派生)で使えるsummaly-proxy +Misskey(とその派生)で使えるGoで書かれた軽量なsummaly-proxy 中身は[別ライブラリ(summergo)として](https://github.com/nexryai/summergo)公開しています diff --git a/internal/router/summaly.go b/internal/router/summaly.go index 1e42d00..bc72d91 100644 --- a/internal/router/summaly.go +++ b/internal/router/summaly.go @@ -31,9 +31,7 @@ func SummalyRouter(app *fiber.App) { log.ErrorWithDetail("Error on Summarize():", err) ctx.Status(400) return ctx.SendString("Invalid URL") - } - - if summaly == nil { + } else if summaly == nil { log.Error("Result is nil. returning 500") ctx.Status(500) return ctx.SendString("Internal Server Error") diff --git a/main.go b/main.go index 1807774..df3bcab 100644 --- a/main.go +++ b/main.go @@ -38,7 +38,7 @@ func main() { err := app.Listen(":3000") if err != nil { - log.FatalWithDetail("err:", err) + log.FatalWithDetail("Failed to listen on :3000 >>> ", err) os.Exit(1) } }