mirror of
https://github.com/Dadido3/go-typst.git
synced 2025-11-20 03:49:34 +00:00
Change error message
This commit is contained in:
parent
e9bd6a0928
commit
a8a2466172
4
cli.go
4
cli.go
@ -28,7 +28,7 @@ func (c CLI) VersionString() (string, error) {
|
||||
execPath = c.ExecutablePath
|
||||
}
|
||||
if execPath == "" {
|
||||
return "", fmt.Errorf("go-typst doesn't support this platform")
|
||||
return "", fmt.Errorf("not supported on this platform")
|
||||
}
|
||||
|
||||
cmd := exec.Command(execPath, "--version")
|
||||
@ -65,7 +65,7 @@ func (c CLI) Compile(input io.Reader, output io.Writer, options *Options) error
|
||||
execPath = c.ExecutablePath
|
||||
}
|
||||
if execPath == "" {
|
||||
return fmt.Errorf("go-typst doesn't support this platform")
|
||||
return fmt.Errorf("not supported on this platform")
|
||||
}
|
||||
|
||||
cmd := exec.Command(execPath, args...)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user