Skip to content

Commit

Permalink
Add both
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSurgisonGDS committed Aug 7, 2023
1 parent 1f9d088 commit d4da24d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/errorServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ function runErrorServer (error) {
try {
const nunjucksAppEnv = getNunjucksAppEnv([
path.join(__dirname, 'nunjucks'),
path.join(packageDir, 'node_modules', 'govuk-frontend')
path.join(packageDir, 'node_modules', 'govuk-frontend'),
path.join(process.cwd(), 'node_modules', 'govuk-frontend')
])
res.end(nunjucksAppEnv.render('views/error-handling/server-error', getErrorModel(error)))
} catch (ignoreThisError) {
Expand Down

0 comments on commit d4da24d

Please sign in to comment.