mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
BUG-2739: Bugfix for error handling. [skip ci]
This commit is contained in:
parent
b4bec996f3
commit
da2db5eae8
1 changed files with 1 additions and 1 deletions
|
@ -1393,7 +1393,7 @@ namespace Greenshot.Forms {
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
// Make sure we show what we tried to open in the exception
|
// 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);
|
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.
|
// No reason to create a bug-form, we just display the error.
|
||||||
MessageBox.Show(this, ex.Message, "Opening " + path, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
MessageBox.Show(this, ex.Message, "Opening " + path, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue