mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 05:23:31 +00:00
use log.Fatal during setup procedures.
update readme example
This commit is contained in:
5
path.go
5
path.go
@@ -3,7 +3,7 @@ package voicemeeter
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"os"
|
||||
"log"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
@@ -49,8 +49,7 @@ func dllPath() (string, error) {
|
||||
func getDllPath() string {
|
||||
path, err := dllPath()
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
log.Fatal(err)
|
||||
}
|
||||
return path
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user