From e5d825c96bd91b3732377c9dde80ad044db233e4 Mon Sep 17 00:00:00 2001 From: Weston McNamara Date: Mon, 14 Dec 2020 12:24:28 -0500 Subject: [PATCH] Improved message formatting, and removed error message with more user friendly data. --- Program.cs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Program.cs b/Program.cs index 6dc1acf..5f2f80f 100644 --- a/Program.cs +++ b/Program.cs @@ -39,20 +39,19 @@ async static Task Main(string[] args) //After displaying that, download the background, and set the desktop background with the new image. using (var client = new WebClient()) { - Console.WriteLine("Downloading Background..."); + Console.WriteLine("Downloading Background... \n"); client.DownloadFile(apod.hdurl, "bg.jpg"); SetDesktopBackground(Path.GetFullPath("bg.jpg")); } } catch (Exception e) { - Console.WriteLine("\nException Caught!"); - Console.WriteLine("Message :{0} ", e.Message); - Console.WriteLine("If you're seeing this, its quite likely that the APOD today is not a format that can be set to a desktop background, such as a video."); - Console.ReadKey(); + //Console.WriteLine("\nException Caught!"); + //Console.WriteLine("Message :{0} ", e.Message); + Console.WriteLine("The APOD today is not a format that can be set to a desktop background, such as a video. Please visit the official APOD website to view todays APOD. \n\nhttps://apod.nasa.gov/apod/astropix.html" ); } - Console.WriteLine("Press Any Key To Close"); + Console.WriteLine("\nPress Any Key To Close"); Console.ReadKey(); }