From 55220fe9248af5874f4b1bb3e8ccb05deaa3254d Mon Sep 17 00:00:00 2001 From: Cyberboss Date: Tue, 4 Sep 2018 11:52:54 -0400 Subject: [PATCH] Fix ServerErrorException constructor --- src/Tgstation.Server.Client/ServerErrorException.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/Tgstation.Server.Client/ServerErrorException.cs b/src/Tgstation.Server.Client/ServerErrorException.cs index f5a243678c..940f3513a7 100644 --- a/src/Tgstation.Server.Client/ServerErrorException.cs +++ b/src/Tgstation.Server.Client/ServerErrorException.cs @@ -1,5 +1,6 @@ using System; using System.Net; +using Tgstation.Server.Api.Models; namespace Tgstation.Server.Client { @@ -22,7 +23,11 @@ namespace Tgstation.Server.Client /// Construct an with /// /// The raw HTML response of the - public ServerErrorException(string html) : base(null, HttpStatusCode.InternalServerError) + public ServerErrorException(string html) : base(new ErrorMessage + { + Message = "An internal server error occurred!", + SeverApiVersion = null + }, HttpStatusCode.InternalServerError) { Html = html; }