Support variable audio formats

This commit is contained in:
Carl Pearson
2024-09-13 05:35:57 -06:00
parent f8a182aa75
commit f0c1a8b00e
7 changed files with 61 additions and 17 deletions

View File

@@ -1,7 +1,6 @@
package main
import (
"errors"
"fmt"
"os"
)
@@ -28,7 +27,7 @@ func getAdminInitialPassword() (string, error) {
if exists {
return value, nil
}
return "", errors.New(fmt.Sprintf("please set %s", key))
return "", fmt.Errorf("please set %s", key)
}
func getSessionAuthKey() ([]byte, error) {
@@ -37,7 +36,7 @@ func getSessionAuthKey() ([]byte, error) {
if exists {
return []byte(value), nil
}
return []byte{}, errors.New(fmt.Sprintf("please set %s", key))
return []byte{}, fmt.Errorf("please set %s", key)
}
var GitSHA string