mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-31 09:02:41 +01:00
Convert a common exception to a JobException
This exception is easily thrown during jobs if the user forgot to install a BYOND version. So, let's pretify it for them.
This commit is contained in:
@@ -192,7 +192,7 @@ namespace Tgstation.Server.Host.Components.Byond
|
||||
{
|
||||
var versionToUse = requiredVersion ?? ActiveVersion;
|
||||
if (versionToUse == null)
|
||||
throw new InvalidOperationException("No BYOND versions installed!");
|
||||
throw new JobException("No BYOND versions installed!");
|
||||
await InstallVersion(versionToUse, cancellationToken).ConfigureAwait(false);
|
||||
|
||||
var versionKey = VersionKey(versionToUse);
|
||||
|
||||
Reference in New Issue
Block a user