Skip to content

fix(scullyroutesservice): dont error when nor routefile is found#218

Merged
SanderElias merged 2 commits intomasterfrom
sander/fixWhenNoRoutes
Jan 22, 2020
Merged

fix(scullyroutesservice): dont error when nor routefile is found#218
SanderElias merged 2 commits intomasterfrom
sander/fixWhenNoRoutes

Conversation

@SanderElias
Copy link
Copy Markdown
Contributor

When used in a specific way, the route-service coulsderror out. This fixes that issue

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Other... Please describe:

What is the current behavior?

When the route file isn't created yet and is used in a specific way, it can error, and break prerendering of the page

What is the new behavior?

doesn't error anymore, and makes sure the page renders correctly
It also removes a stray debug console.log

Does this PR introduce a breaking change?

  • Yes
  • No

When used in a specific way, the routeServie couls error out. This fixes that issue
Copy link
Copy Markdown
Contributor

@jorgeucano jorgeucano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SanderElias SanderElias merged commit ec94d08 into master Jan 22, 2020
@SanderElias SanderElias deleted the sander/fixWhenNoRoutes branch January 22, 2020 14:34
Copy link
Copy Markdown
Contributor

@Villanuevand Villanuevand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants