<%- template('error.500.heading') %>
<%- template('error.500.message') %>
+ + <% if (err.errors && err.errors.find(error => error.reason === + 'exportSizeLimitExceeded')) { %> +diff --git a/config/strings.yaml b/config/strings.yaml index 488c5d55..a3b219be 100644 --- a/config/strings.yaml +++ b/config/strings.yaml @@ -22,7 +22,6 @@ landing: label: Useful Docs style: docs - # partials/footer footer: helpText: Questions? Contact your organization's administrators. @@ -65,7 +64,7 @@ playlist: heading: !!js/function (title) => `${title} Playlist` nav: previous: < - next: '>' + next: ">" # errors error: @@ -81,8 +80,10 @@ error: title: Server Error heading: Uh oh, that's a 500. message: Perhaps try to search for something else instead? + sizeLimitNote: + message: "The document is too large to display in Library. We are working on a fix, but in the meantime, you can view the document directly in Google Drive." + viewButton: "View the document directly in Google Drive" # warning messages warning: duplicate: !!js/function (names, folderId) => `Multiple resources in this folder share the same name: ${names.join(', ')}. Only one will be accesible through Library.` - diff --git a/layouts/errors/500.ejs b/layouts/errors/500.ejs index 9985801f..f38d14b9 100644 --- a/layouts/errors/500.ejs +++ b/layouts/errors/500.ejs @@ -1,19 +1,32 @@ - <%- include('partials/head', {title: template('error.500.title'), formatUrl, pathPrefix}) %> + <%- include('partials/head', {title: template('error.500.title'), formatUrl, + pathPrefix}) %>
- <%- include('partials/header', {title: template('error.500.title'), parentLinks: [], formatUrl}) %> + <%- include( 'partials/header', {title: template('error.500.title'), + parentLinks: [], formatUrl} ) %><%- template('error.500.message') %>
+ + <% if (err.errors && err.errors.find(error => error.reason === + 'exportSizeLimitExceeded')) { %> +