Skip to content

Commit

Permalink
Xlf also guard against write errors on save.
Browse files Browse the repository at this point in the history
  • Loading branch information
tom-englert committed Jan 26, 2023
1 parent b81d9c7 commit f2cfbe7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ResXManager.View/Tools/XlfSynchronizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ private void ResourceManager_ProjectFileSaved(object? sender, ProjectFileEventAr
UpdateXlfFile(entity, language.CultureKey, filesByOriginal);
}
}
catch (Exception ex)
{
_tracer.TraceError("UpdateXlfFile for project file {0} failed: {1}", e.ProjectFile.FilePath, ex);
}
finally
{
Interlocked.Decrement(ref _isUpdateFromResXRunning);
Expand Down

0 comments on commit f2cfbe7

Please sign in to comment.