From bda5c933a3c93c29e3f36b37fda163ac58a8c33b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Batista?= Date: Mon, 17 Apr 2023 10:35:48 -0300 Subject: [PATCH] format --- d2cli/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d2cli/main.go b/d2cli/main.go index f80aa4a2b..a4f83686b 100644 --- a/d2cli/main.go +++ b/d2cli/main.go @@ -196,7 +196,7 @@ func Run(ctx context.Context, ms *xmain.State) (err error) { if *animateIntervalFlag > 0 && !outputFormat.supportsAnimation() { return xmain.UsageErrorf("-animate-interval can only be used when exporting to SVG or GIF.\nYou provided: %s", filepath.Ext(outputPath)) } else if *animateIntervalFlag <= 0 && outputFormat.requiresAnimationInterval() { - return xmain.UsageErrorf("-animate-interval must be greater than 0 for GIF outputs.\nYou provided: %d", *animateIntervalFlag) + return xmain.UsageErrorf("-animate-interval must be greater than 0 for %s outputs.\nYou provided: %d", outputFormat, *animateIntervalFlag) } }