We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2605862 + 7ce7193 commit 094ff2cCopy full SHA for 094ff2c
main.go
@@ -1,6 +1,7 @@
1
package main
2
3
import (
4
+ "errors"
5
"flag"
6
"fmt"
7
"io/fs"
@@ -161,6 +162,11 @@ func runRSGain(audioFiles []string, isQuiet bool) error {
161
162
err := cmd.Run()
163
164
if err != nil {
165
+ if errors.Is(err, exec.ErrNotFound) {
166
+ fmt.Println("autogain can't find rsgain")
167
+ fmt.Println("rsgain is not installed and/or not in PATH! Please install it and make it runnable from CLI.")
168
+ os.Exit(127)
169
+ }
170
errLog.Printf("Error calling rsgain on these files: '%v'\n", audioFiles)
171
errLog.Printf("Command failed: %s\nError: %v\n", cmd.String(), err)
172
0 commit comments