Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package main

import (
"errors"
"flag"
"fmt"
"io/fs"
Expand Down Expand Up @@ -161,6 +162,11 @@ func runRSGain(audioFiles []string, isQuiet bool) error {
err := cmd.Run()

if err != nil {
if errors.Is(err, exec.ErrNotFound) {
fmt.Println("autogain can't find rsgain")
fmt.Println("rsgain is not installed and/or not in PATH! Please install it and make it runnable from CLI.")
os.Exit(127)
}
errLog.Printf("Error calling rsgain on these files: '%v'\n", audioFiles)
errLog.Printf("Command failed: %s\nError: %v\n", cmd.String(), err)

Expand Down
Loading