Merge 8bf3039cc5 into 4bcb6d47c7
This commit is contained in:
commit
5a6585b19b
1 changed files with 2 additions and 2 deletions
|
|
@ -248,9 +248,9 @@ func Run(ctx context.Context, ms *xmain.State) (err error) {
|
|||
if outputPath != "-" {
|
||||
outputPath = ms.AbsPath(outputPath)
|
||||
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() {
|
||||
return xmain.UsageErrorf("-animate-interval must be greater than 0 for %s outputs.\nYou provided: %d", outputFormat, *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