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:
Jordan Brown
2018-09-29 15:31:31 -04:00
parent a3041dd7df
commit 59c079b401
@@ -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);