[smuxi: 1/2] Engine: fix typo in catch block
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi: 1/2] Engine: fix typo in catch block
- Date: Wed, 29 Apr 2015 16:48:44 +0000 (UTC)
commit 1c9d630cb1f25d2d22b6e02f50cad46e22eba9b6
Author: Andrés G. Aragoneses <knocte gmail com>
Date: Wed Apr 29 18:45:22 2015 +0200
Engine: fix typo in catch block
This typo was introduced in this commit:
https://github.com/meebey/smuxi/commit/aba9e8f9395c4c6fd879d65d99f373ee0de81ea5
And it was generating an uncaught FormatException due to not
providing the {2}-indexed element.
src/Engine/Session.cs | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/Engine/Session.cs b/src/Engine/Session.cs
index 47c6b99..2cbbf8d 100644
--- a/src/Engine/Session.cs
+++ b/src/Engine/Session.cs
@@ -1529,7 +1529,7 @@ namespace Smuxi.Engine
#endif
var msg = CreateMessageBuilder().
AppendErrorText("Command '{0}' failed. Reason: {1} ({2})",
- command, ex.Message).
+ command, ex.Message, ex.GetType()).
ToMessage();
AddMessageToFrontend (frontendManager, protocolManager.Chat, msg);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]