From 800ef86b652f2a1f6d4c539958061fc5918f91c0 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sun, 5 Jul 2015 18:12:05 -0600 Subject: [PATCH] Log errors instead of absorbing them --- TShockAPI/Commands.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TShockAPI/Commands.cs b/TShockAPI/Commands.cs index f5441e95..facddcdc 100755 --- a/TShockAPI/Commands.cs +++ b/TShockAPI/Commands.cs @@ -1090,9 +1090,10 @@ namespace TShockAPI { args.Player.SendErrorMessage("User " + user.Name + " does not exist!"); } - catch (UserManagerException) + catch (UserManagerException e) { args.Player.SendErrorMessage("User " + user.Name + " could not be added. Check console for details."); + TShock.Log.ConsoleError(e.ToString()); } } else if (subcmd == "help")