We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae955d7 commit 4f208f7Copy full SHA for 4f208f7
1 file changed
ResourceDownloader/Program.cs
@@ -16,7 +16,15 @@ public static void Main(string[] args)
16
string ecsId = Console.ReadLine();
17
string password = ShellMethods.EnterPassword("EnterPassword:");
18
var user = new SakaiUser(ecsId, password);
19
- user.LogIn();
+ try
20
+ {
21
+ user.LogIn();
22
+ }
23
+ catch (Exception ex)
24
25
+ Console.WriteLine("Failed to sign in:\r\n" + ex.Message);
26
+ return;
27
28
29
// Get site list
30
SakaiSiteCollection collection = user.GetSites();
0 commit comments