From 6dbbc9256af2e80b77c8e53059db6f0100d284fd Mon Sep 17 00:00:00 2001 From: alyosha-tas Date: Sat, 10 Nov 2018 17:23:45 -0600 Subject: [PATCH] Movie Importer: Display Failure Message --- BizHawk.Client.Common/movie/import/MovieImport.cs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/BizHawk.Client.Common/movie/import/MovieImport.cs b/BizHawk.Client.Common/movie/import/MovieImport.cs index 33eb7b1e73..9110615a37 100644 --- a/BizHawk.Client.Common/movie/import/MovieImport.cs +++ b/BizHawk.Client.Common/movie/import/MovieImport.cs @@ -203,8 +203,15 @@ namespace BizHawk.Client.Common errorMsg = except.ToString(); } - m.Filename += "." + BkmMovie.Extension; - + if (m != null) + { + m.Filename += "." + BkmMovie.Extension; + } + else + { + throw new Exception(errorMsg); + } + return m; }