This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user