aboutsummaryrefslogtreecommitdiffstats
path: root/src/slskd/Program.cs
diff options
context:
space:
mode:
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