Changes
This commit is contained in:
@@ -71,7 +71,11 @@ namespace Musify.Infrastructure.MassTransit.Activities
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Directory.Delete(compensateContext.Log.WorkingDirectory, recursive: true);
|
if (Directory.Exists(compensateContext.Log.WorkingDirectory))
|
||||||
|
Directory.Delete(compensateContext.Log.WorkingDirectory, recursive: true);
|
||||||
|
else
|
||||||
|
logger.LogWarning("Working directory {WorkingDirectory} does not exist during compensation",
|
||||||
|
compensateContext.Log.WorkingDirectory);
|
||||||
return Task.FromResult(compensateContext.Compensated());
|
return Task.FromResult(compensateContext.Compensated());
|
||||||
}
|
}
|
||||||
catch (Exception exception)
|
catch (Exception exception)
|
||||||
|
|||||||
Reference in New Issue
Block a user