File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
modules/builders/src/prerender Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,8 @@ describe('Prerender Builder', () => {
148148
149149 it ( 'should throw if no routes are given' , async ( ) => {
150150 options . routes = [ ] ;
151- const expectedError = new Error ( 'No routes found. options.routes must contain at least one route to render.' ) ;
151+ const expectedError = new Error (
152+ 'No routes found. Specify routes to render using `prerender.options.routes` in angular.json.' ) ;
152153 await expectAsync (
153154 PrerenderModule . _prerender ( options , context )
154155 ) . toBeRejectedWith ( expectedError ) ;
Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ export async function _prerender(
129129 context : BuilderContext
130130) : Promise < BuilderOutput > {
131131 if ( ! options . routes || options . routes . length === 0 ) {
132- throw new Error ( 'No routes found. options. routes must contain at least one route to render .' ) ;
132+ throw new Error ( 'No routes found. Specify routes to render using `prerender.options.routes` in angular.json .' ) ;
133133 }
134134 const browserTarget = targetFromTargetString ( options . browserTarget ) ;
135135 const serverTarget = targetFromTargetString ( options . serverTarget ) ;
You can’t perform that action at this time.
0 commit comments