aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-05 08:24:56 -0500
committerJP Dillingham <jpdillingham@gmail.com>2021-11-05 08:24:56 -0500
commita79b0b20e576fde74067614c48398586e7eeb958 (patch)
tree2c1d5925a47360806bc4b4ffa23276ca676ccf73 /src/slskd/Program.cs
parentc97abdba209bc96886b28b6cb4bdd5886ed3de33 (diff)
downloadslskd-a79b0b20e576fde74067614c48398586e7eeb958.tar.gz
bump dependencies
Diffstat (limited to 'src/slskd/Program.cs')
-rw-r--r--src/slskd/Program.cs6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 8af0e557..edecf4e8 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -547,7 +547,7 @@ namespace slskd
Console.WriteLine(banner);
}
- private static bool VerifyDirectory(string directory, bool createIfMissing = true, bool verifyWriteable = true)
+ private static void VerifyDirectory(string directory, bool createIfMissing = true, bool verifyWriteable = true)
{
if (!Directory.Exists(directory))
{
@@ -564,7 +564,7 @@ namespace slskd
}
else
{
- return false;
+ throw new IOException($"Directory {directory} does not exist");
}
}
@@ -582,8 +582,6 @@ namespace slskd
throw new IOException($"Directory {directory} is not writeable: {ex.Message}", ex);
}
}
-
- return true;
}
}
} \ No newline at end of file