mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-22 04:40:53 +00:00
add error message if config not found
This commit is contained in:
parent
73893209a1
commit
a5f653f569
@ -3,8 +3,8 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"log"
|
||||
"time"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/onyx-and-iris/voicemeeter-api-go"
|
||||
|
||||
@ -107,7 +107,8 @@ func obsConnect() (*goobs.Client, error) {
|
||||
|
||||
f := "config.toml"
|
||||
if _, err := os.Stat(f); err != nil {
|
||||
f = "./config.toml"
|
||||
err := fmt.Errorf("unable to locate %s", f)
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var c config
|
||||
|
Loading…
Reference in New Issue
Block a user