M Core/NosSmooth.Core/Contracts/Contractor.cs => Core/NosSmooth.Core/Contracts/Contractor.cs +2 -1
@@ 114,6 114,7 @@ public class Contractor : IEnumerable<IContract>
$"A contract {info.contract} has been registered for too long and was unregistered automatically."
)
);
+ toRemove.Add(info);
continue;
}
@@ 148,7 149,7 @@ public class Contractor : IEnumerable<IContract>
return errors.Count switch
{
0 => Result.FromSuccess(),
- 1 => (Result)errors[0],
+ 1 => Result.FromError((Result<ContractUpdateResponse>)errors[0]),
_ => new AggregateError(errors)
};
}
M Core/NosSmooth.Game/Contracts/UseSkillErrors.cs => Core/NosSmooth.Game/Contracts/UseSkillErrors.cs +6 -1
@@ 24,5 24,10 @@ public enum UseSkillErrors
/// <summary>
/// The character does not have enough mana.
/// </summary>
- NoMana
+ NoMana,
+
+ /// <summary>
+ /// There was no response from the server.
+ /// </summary>
+ NoResponse
}=
\ No newline at end of file