pcmt/main.go

20 lines
330 B
Go
Raw Normal View History

2023-05-20 20:15:57 +02:00
// Copyright 2023 wanderer <a_mirre at utb dot cz>
// SPDX-License-Identifier: AGPL-3.0-only
package main
2023-04-19 05:30:52 +02:00
import (
"os"
"golang.org/x/exp/slog"
)
func main() {
err := run()
if err != nil {
2023-04-19 05:30:52 +02:00
l := slog.New(slog.NewJSONHandler(os.Stderr))
l.Error("unrecoverable failure, stopping the app", "error", err)
2023-04-19 05:30:52 +02:00
os.Exit(1)
}
}