From de56cda2782b3e48e0d7c5dc3523e5b7aca7bb15 Mon Sep 17 00:00:00 2001 From: Alexander Wang Date: Tue, 29 Nov 2022 17:09:21 -0800 Subject: [PATCH] 2022-11-29 05:09:21PM --- cmd/d2/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/d2/main.go b/cmd/d2/main.go index ebeb4fd29..063783e37 100644 --- a/cmd/d2/main.go +++ b/cmd/d2/main.go @@ -238,7 +238,7 @@ func compile(ctx context.Context, ms *xmain.State, isWatching bool, plugin d2plu // Missing/broken images are fine during watch mode, as the user is likely building up a diagram. // Otherwise, the assumption is that this diagram is building for production, and broken images are not okay. if !isWatching && ms.Log.Nerrors() > 0 { - xmain.ExitErrorf(1, "errors logged while rendering, partial output written to %v", outputPath) + return nil, xmain.ExitErrorf(1, "errors logged while rendering, partial output written to %v", outputPath) } return svg, nil