Ignore:
Timestamp:
Oct 29, 2019, 11:20:45 AM (5 years ago)
Author:
alloc
Message:

Removed unnecessary try-catch-blocks from commands (command handler catches exceptions anyway and provides more detailed output)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/AllocsCommands/Commands/SayToPlayer.cs

    r325 r359  
    3535
    3636                public override void Execute (List<string> _params, CommandSenderInfo _senderInfo) {
    37                         try {
    38                                 if (_senderInfo.RemoteClientInfo != null) {
    39                                         RunInternal (_senderInfo.RemoteClientInfo, _params);
    40                                 } else {
    41                                         RunInternal (null, _params);
    42                                 }
    43                         } catch (Exception e) {
    44                                 Log.Out ("Error in SayToPlayer.Run: " + e);
     37                        if (_senderInfo.RemoteClientInfo != null) {
     38                                RunInternal (_senderInfo.RemoteClientInfo, _params);
     39                        } else {
     40                                RunInternal (null, _params);
    4541                        }
    4642                }
Note: See TracChangeset for help on using the changeset viewer.