diff --git a/OWTrack/Tracker.cs b/OWTrack/Tracker.cs index 54f18ab..3882d02 100644 --- a/OWTrack/Tracker.cs +++ b/OWTrack/Tracker.cs @@ -88,10 +88,9 @@ namespace OWTrack .FirstOrDefault(p => p.MainModule.FileName.StartsWith(settings.GamePath)) != default(Process); return isRunning; } - catch (Exception) - { - Exception ex = new Exception("Error"); - throw ex; + catch (Exception e) + { + throw e; } } else return false; diff --git a/OWTrack/saveManeger.cs b/OWTrack/saveManeger.cs index 6367287..9ec54b9 100644 --- a/OWTrack/saveManeger.cs +++ b/OWTrack/saveManeger.cs @@ -29,17 +29,16 @@ namespace OWTrack /// /// Deserialize saved tracker instance. /// - /// + /// Tracker Object public static Tracker GetSavedTracker() { try { return JsonConvert.DeserializeObject(File.ReadAllText(Paths.GetSaves())); } - catch (Exception) + catch (Exception e) { - Exception ex = new Exception("json"); - throw ex; + throw e; } } @@ -61,10 +60,10 @@ namespace OWTrack } /// - ///Saves the Tracker Object. + /// Deserializes and Saves the Tracker Object. /// /// - /// + /// Boolean value that represents the success or failuer public static bool SaveJSON(Tracker tracker) { try