From 2afc232eb151f8813b5d8e047e3205e858574b1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=B2=81=E6=A0=91=E4=BA=BA?= Date: Tue, 8 Oct 2024 21:59:47 +0100 Subject: [PATCH] fix: don't force exit when `processFile` fails. --- cmd/um/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/um/main.go b/cmd/um/main.go index 727c81c..8f1f485 100644 --- a/cmd/um/main.go +++ b/cmd/um/main.go @@ -247,7 +247,7 @@ func (p *processor) processDir(inputDir string) error { func (p *processor) processFile(filePath string) error { allDec := common.GetDecoder(filePath, p.skipNoopDecoder) if len(allDec) == 0 { - logger.Fatal("skipping while no suitable decoder") + return errors.New("skipping while no suitable decoder") } if err := p.process(filePath, allDec); err != nil {