Verified Commit 4da04a22 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3013802 by andregp, yogeshmpawar, gaurav.kapoor, nikitas, Charlie ChX...

Issue #3013802 by andregp, yogeshmpawar, gaurav.kapoor, nikitas, Charlie ChX Negyesi, SourabhBhalerao, alexpott, joachim: Improve error message on unrouted URLs

(cherry picked from commit 83e1686b)
parent 3aa89b93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -564,7 +564,7 @@ public function isRouted() {
   */
  public function getRouteName() {
    if ($this->unrouted) {
      throw new \UnexpectedValueException('External URLs do not have an internal route name.');
      throw new \UnexpectedValueException($this->getUri() . ' has no corresponding route.');
    }

    return $this->routeName;