diff options
| author | KGT1 <kilian.gamn@gmx.de> | 2026-10-17 16:51:55 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-10-17 16:51:55 +0200 |
| commit | 292b13d1daf36316274211a8b3c13385c60efdb5 (patch) | |
| tree | 1204df8423af2f317dbf3171aa7a42b1413b4e2e /Emby.Server.Implementations/Serialization | |
| parent | 0be145c4e202bac0edc36b769f8b4db2232ad216 (diff) | |
| parent | 08c2ba6e0b6499122822f1c5b18bc426104538b4 (diff) | |
Merge branch 'jellyfin:master' into removeGenericConfigurationEndpoint
Diffstat (limited to 'Emby.Server.Implementations/Serialization')
| -rw-r--r-- | Emby.Server.Implementations/Serialization/MyXmlSerializer.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Serialization/MyXmlSerializer.cs b/Emby.Server.Implementations/Serialization/MyXmlSerializer.cs index aa5fbbdf73..5c9a94cd36 100644 --- a/Emby.Server.Implementations/Serialization/MyXmlSerializer.cs +++ b/Emby.Server.Implementations/Serialization/MyXmlSerializer.cs @@ -85,9 +85,17 @@ namespace Emby.Server.Implementations.Serialization /// <returns>System.Object.</returns> public object? DeserializeFromFile(Type type, string file) { - using (var stream = File.OpenRead(file)) + try { - return DeserializeFromStream(type, stream); + using (var stream = File.OpenRead(file)) + { + return DeserializeFromStream(type, stream); + } + } + catch (Exception ex) + { + ex.Data.Add("Filename", file); + throw; } } |
