Skip to content

Commit 42b9b22

Browse files
author
Nicholas Bergesen
committed
Update exception message
1 parent e2a5cc0 commit 42b9b22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Nick.RobotsParser/RobotsParser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ private async Task<string> WebRequest(string url)
106106
public async Task<bool> LoadRobotsFromUrl(string robotsUrl)
107107
{
108108
if (!Uri.TryCreate(robotsUrl, UriKind.Absolute, out Uri? robots))
109-
throw new ArgumentException($"Unable to append robots.txt to {robotsUrl}");
109+
throw new ArgumentException($"Unable to create uri from: {robotsUrl}");
110110

111111
_robotsContent = await WebRequest(robots.ToString());
112112
if (!string.IsNullOrWhiteSpace(_robotsContent)) return false;

0 commit comments

Comments
 (0)