diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-11-16 21:32:48 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2018-11-16 21:32:48 -0500 |
commit | 04886afd291178643638af0fc387942202a676b2 (patch) | |
tree | 06a7b9809e7f5d6f7e324f3998bfe5c35e73af81 /src/SMAPI.Web/Controllers/ModsApiController.cs | |
parent | d21bfc3ada2d9a1d6bf6084f7e54d49120f4d82e (diff) | |
download | SMAPI-04886afd291178643638af0fc387942202a676b2.tar.gz SMAPI-04886afd291178643638af0fc387942202a676b2.tar.bz2 SMAPI-04886afd291178643638af0fc387942202a676b2.zip |
fix update-check errors sometimes being overwritten with a generic error message
Diffstat (limited to 'src/SMAPI.Web/Controllers/ModsApiController.cs')
-rw-r--r-- | src/SMAPI.Web/Controllers/ModsApiController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI.Web/Controllers/ModsApiController.cs b/src/SMAPI.Web/Controllers/ModsApiController.cs index 05568d5e..f0835592 100644 --- a/src/SMAPI.Web/Controllers/ModsApiController.cs +++ b/src/SMAPI.Web/Controllers/ModsApiController.cs @@ -252,7 +252,7 @@ namespace StardewModdingAPI.Web.Controllers return await this.Cache.GetOrCreateAsync($"{repository.VendorKey}:{parsed.ID}".ToLower(), async entry => { ModInfoModel result = await repository.GetModInfoAsync(parsed.ID); - if (result.Error != null) + if (result.Error == null) { if (result.Version == null) result.Error = $"The update key '{updateKey}' matches a mod with no version number."; |