Skip to content

Commit

Permalink
Add console.writeLine(e) for the errors, stops warns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Moore committed Jan 5, 2017
1 parent 51affe5 commit 770b4ff
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Disbott/Controllers/Poll.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,10 +139,12 @@ public static bool FindPoll(string question)
}
catch (IndexOutOfRangeException e)
{
Console.WriteLine(e);
return false;
}
catch (Exception e)
{
Console.WriteLine(e);
return false;
}
}
Expand Down
2 changes: 2 additions & 0 deletions Disbott/Controllers/RemindMeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,12 @@ public static bool FindReminder(string note)
}
catch(IndexOutOfRangeException e)
{
Console.WriteLine(e);
return false;
}
catch(Exception e)
{
Console.WriteLine(e);
return false;
}
}
Expand Down
2 changes: 2 additions & 0 deletions Disbott/Views/RemindMeModule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public async Task RemindDateTime(string date, [Remainder]string note)
}
catch(FormatException e)
{
Console.WriteLine(e);
await ReplyAsync("Date was in an incorrect format. Use the format 'DD/MM/YYYY HH:MM:SS'(Must be in inverted commas) \r\n Or just type a date for a day");
}
catch(Exception e)
Expand Down Expand Up @@ -184,6 +185,7 @@ public async Task RemindAllDateTime(string date, [Remainder]string note)
}
catch (FormatException e)
{
Console.WriteLine(e);
await ReplyAsync("Date was in an incorrect format. Use the format 'DD/MM/YYYY HH:MM:SS'(Must be in inverted commas) \r\n Or just type a date for a day");
}
catch (Exception e)
Expand Down

0 comments on commit 770b4ff

Please sign in to comment.