Skip to content

Commit

Permalink
Write clearer error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JoseDeFreitas committed Mar 16, 2023
1 parent c5b4ccc commit 44917c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CodewarsGitHubLogger/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static void SignInToCodewars(
}
catch (NoSuchElementException)
{
Console.WriteLine("The element was not found on the page.");
Console.WriteLine("A web element was not found on the page (sign-in step).");
Environment.Exit(1);
}
}
Expand Down Expand Up @@ -283,7 +283,7 @@ static async Task CreateCodeFileAsync(IWebDriver driver, string path, string id,
}
catch (NoSuchElementException)
{
Console.WriteLine("The element was not found on the page.");
Console.WriteLine("A web element was not found on the page (create code file step).");
}
catch (IOException)
{
Expand Down Expand Up @@ -324,7 +324,7 @@ static async Task CreateIndexFileAsync()
}
catch (IOException)
{
Console.WriteLine("There was a problem while creating the index file.");
Console.WriteLine("There was a problem while creating the README file.");
}
}
}
Expand Down

0 comments on commit 44917c6

Please sign in to comment.