wrap File.Delete on catch
This commit is contained in:
@@ -73,7 +73,11 @@ public partial class ApiController
|
||||
}
|
||||
catch
|
||||
{
|
||||
File.Delete(fileName);
|
||||
try
|
||||
{
|
||||
File.Delete(fileName);
|
||||
}
|
||||
catch { }
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user