From f7c914a267d864befbbc466d5778bb99b4ca1f81 Mon Sep 17 00:00:00 2001 From: Nereziel Date: Tue, 14 Nov 2023 16:37:47 +0100 Subject: [PATCH] missing exception --- WeaponPaints.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/WeaponPaints.cs b/WeaponPaints.cs index fb67cf21..3f32e2c9 100644 --- a/WeaponPaints.cs +++ b/WeaponPaints.cs @@ -301,8 +301,9 @@ public class WeaponPaints : BasePlugin, IPluginConfig gPlayerWeaponSeed[steamId.SteamId64][WeaponDefIndex] = Seed; }); } - catch (Exception) + catch (Exception e) { + Log(e.Message); return; } } @@ -331,7 +332,7 @@ public class WeaponPaints : BasePlugin, IPluginConfig } catch (Exception e) { - Console.WriteLine(e.Message); + Log(e.Message); return; } } @@ -344,9 +345,9 @@ public class WeaponPaints : BasePlugin, IPluginConfig var steamId = new SteamID(player.SteamID); await MySql!.ExecuteNonQueryAsync($"INSERT INTO `wp_player_knife` (`steamid`, `knife`) VALUES('{steamId.SteamId64}', '{knife}') ON DUPLICATE KEY UPDATE `knife` = '{knife}';"); } - catch (Exception ex) + catch (Exception e) { - Log(ex.Message); + Log(e.Message); return; } }