Skip to content

Commit 137fa41

Browse files
committed
add condition
1 parent b968ec2 commit 137fa41

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/UniGetUI.PackageEngine.Operations/AbstractOperation.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,10 @@ public async Task MainThread()
316316
OperationFinished?.Invoke(this, EventArgs.Empty);
317317
Line(CoreTools.Translate("Operation canceled by user"), LineType.Error);
318318
}
319+
else
320+
{
321+
throw new InvalidCastException();
322+
}
319323
}
320324
catch (Exception ex)
321325
{

0 commit comments

Comments
 (0)