format
This commit is contained in:
parent
18494bee45
commit
bda5c933a3
1 changed files with 1 additions and 1 deletions
|
|
@ -196,7 +196,7 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
|
||||||
if *animateIntervalFlag > 0 && !outputFormat.supportsAnimation() {
|
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))
|
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() {
|
} 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue