mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Fix yabridgectl config file loading
This commit is contained in:
@@ -64,7 +64,7 @@ impl Config {
|
|||||||
/// Try to read the config file, creating a new default file if necessary. This will fail if the
|
/// Try to read the config file, creating a new default file if necessary. This will fail if the
|
||||||
/// file could not be created or if it could not be parsed.
|
/// file could not be created or if it could not be parsed.
|
||||||
pub fn read() -> Result<Config, String> {
|
pub fn read() -> Result<Config, String> {
|
||||||
match yabridge_directories()?.find_config_file(CONFIG_FILE_NAME) {
|
match yabridgectl_directories()?.find_config_file(CONFIG_FILE_NAME) {
|
||||||
Some(path) => {
|
Some(path) => {
|
||||||
let toml_str = fs::read_to_string(&path).map_err(|err| {
|
let toml_str = fs::read_to_string(&path).map_err(|err| {
|
||||||
format!(
|
format!(
|
||||||
|
|||||||
Reference in New Issue
Block a user