Update UniversalExtensions.cs

This commit is contained in:
Mira 2022-11-01 12:08:15 +01:00
parent 6031bb3f00
commit a2c3c85161
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36

View file

@ -339,7 +339,7 @@ public static class UniversalExtensions
public static void DeleteScheduleTask(string UID)
{
if (!registeredScheduledTasks.ContainsKey(UID))
throw new Exception($"No sheduled task has been found with UID '{UID}'");
throw new Exception($"No scheduled task has been found with UID '{UID}'");
if (registeredScheduledTasks[ UID ].tokenSource is null)
throw new Exception($"Internal: There is no token source registered the specified task.");