display error message if audio file reading failed.

This commit is contained in:
morkt 2014-11-07 17:13:02 +04:00
parent 2593f9ffc3
commit 417b39a4c3
2 changed files with 7 additions and 2 deletions

View File

@ -799,9 +799,14 @@ namespace GARbro.GUI
{ {
using (var input = OpenEntry (entry)) using (var input = OpenEntry (entry))
{ {
FormatCatalog.Instance.LastError = null;
var sound = AudioFormat.Read (input); var sound = AudioFormat.Read (input);
if (null == sound) if (null == sound)
{
if (null != FormatCatalog.Instance.LastError)
throw FormatCatalog.Instance.LastError;
return; return;
}
if (m_audio != null) if (m_audio != null)
{ {

View File

@ -51,5 +51,5 @@ using System.Windows;
// You can specify all the values or you can default the Build and Revision Numbers // You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below: // by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")] // [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion ("1.0.3.11")] [assembly: AssemblyVersion ("1.0.3.12")]
[assembly: AssemblyFileVersion ("1.0.2.11")] [assembly: AssemblyFileVersion ("1.0.2.12")]