From 417b39a4c36214856a4f02ed8b8397839da61803 Mon Sep 17 00:00:00 2001 From: morkt Date: Fri, 7 Nov 2014 17:13:02 +0400 Subject: [PATCH] display error message if audio file reading failed. --- MainWindow.xaml.cs | 5 +++++ Properties/AssemblyInfo.cs | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/MainWindow.xaml.cs b/MainWindow.xaml.cs index 142f4ca4..581e11d4 100644 --- a/MainWindow.xaml.cs +++ b/MainWindow.xaml.cs @@ -799,9 +799,14 @@ namespace GARbro.GUI { using (var input = OpenEntry (entry)) { + FormatCatalog.Instance.LastError = null; var sound = AudioFormat.Read (input); if (null == sound) + { + if (null != FormatCatalog.Instance.LastError) + throw FormatCatalog.Instance.LastError; return; + } if (m_audio != null) { diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs index b5f62c74..90ee7602 100644 --- a/Properties/AssemblyInfo.cs +++ b/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ using System.Windows; // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion ("1.0.3.11")] -[assembly: AssemblyFileVersion ("1.0.2.11")] +[assembly: AssemblyVersion ("1.0.3.12")] +[assembly: AssemblyFileVersion ("1.0.2.12")]