This commit is contained in:
2020-06-13 19:23:39 +00:00
parent dd4a4cb68c
commit a306b84c01
2 changed files with 22 additions and 4 deletions

View File

@@ -499,14 +499,24 @@ namespace AyaNova.Core
}
return $"E1020 - Error fetching license key: No key was returned";
}
else
else{
//some kind of server error??
if((int)res.StatusCode > 499){
return $"E1020 - License server error fetching license key, contact technical support: {res.ReasonPhrase}";
}
//If it's NOT FOUND, that's not an error, just a normal response to be expected
if(res.StatusCode== System.Net.HttpStatusCode.NotFound){
return "notfound";
}
return $"E1020 - Error fetching license key: {res.ReasonPhrase}";
}
}
catch (Exception ex)
{
if (calledFromInternalJob) throw ex;
var msg = "E1020 - Error fetching license key";
var msg = "E1020 - Error fetching / installing license key";
log.LogError(ex, msg);
return msg;
}