Handle PNG EXIF and distinguish transient encoder crashes from invalid images

This commit is contained in:
2026-11-21 00:58:18 +03:00
parent a9203f677d
commit 8bd25a1321
13 changed files with 690 additions and 85 deletions
+3
View File
@@ -27,6 +27,9 @@ func env(key, fallback string) string {
}
func main() {
if err := run(); err != nil {
if errors.Is(err, messenger.ErrInvalidImage) {
os.Exit(65)
}
slog.Error("server failed", "error", err)
os.Exit(1)
}