You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console.WriteLine($"Day {day}: Error code 400 when attempting to retrieve puzzle input through the web client. Your session cookie is probably not recognized.");
41
+
42
+
}
43
+
elseif(statusCode==HttpStatusCode.NotFound)
44
+
{
45
+
Console.WriteLine($"Day {day}: Error code 404 when attempting to retrieve puzzle input through the web client. The puzzle is probably not available yet.");
46
+
}
47
+
else
48
+
{
49
+
Console.ForegroundColor=colour;
50
+
Console.WriteLine(e.ToString());
51
+
}
52
+
Console.ForegroundColor=colour;
53
+
}
54
+
catch(InvalidOperationException)
55
+
{
56
+
varcolour=Console.ForegroundColor;
57
+
Console.ForegroundColor=ConsoleColor.DarkYellow;
58
+
Console.WriteLine($"Day {day}: Cannot fetch puzzle input before given date (Eastern Standard Time).");
0 commit comments