Skip to content

Commit

Permalink
Match error type name to filename
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlabelle committed Oct 25, 2024
1 parent 6bab14f commit f684592
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/WebDriver/NoSuchElementError.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/// Thrown when findElement fails to locate an element.
public struct ElementNotFoundError: Error, CustomStringConvertible {
public struct NoSuchElementError: Error, CustomStringConvertible {
/// The locator that was used to search for the element.
public var locator: ElementLocator

Expand Down
2 changes: 1 addition & 1 deletion Sources/WebDriver/Session.swift
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ public class Session {
}
}
} catch {
throw ElementNotFoundError(locator: locator, sourceError: error)
throw NoSuchElementError(locator: locator, sourceError: error)
}
}
}
Expand Down

0 comments on commit f684592

Please sign in to comment.