From da2db5eae801b961d681390fa88846db5845717a Mon Sep 17 00:00:00 2001 From: Robin Krom Date: Tue, 9 Mar 2021 22:05:26 +0100 Subject: [PATCH] BUG-2739: Bugfix for error handling. [skip ci] --- Greenshot/Forms/MainForm.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Greenshot/Forms/MainForm.cs b/Greenshot/Forms/MainForm.cs index 8ff531ca0..ce6bd92af 100644 --- a/Greenshot/Forms/MainForm.cs +++ b/Greenshot/Forms/MainForm.cs @@ -1393,7 +1393,7 @@ namespace Greenshot.Forms { catch (Exception ex) { // Make sure we show what we tried to open in the exception - ex.Data.Add("path", path); + ex.Data["path"] = path; LOG.Warn("Couldn't open the path to the last exported file", ex); // No reason to create a bug-form, we just display the error. MessageBox.Show(this, ex.Message, "Opening " + path, MessageBoxButtons.OK, MessageBoxIcon.Error);