• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mozilla / blurts-server / #12466

pending completion
#12466

push

circleci

Vinnl
Add a generic error page for non-404 errors

282 of 1376 branches covered (20.49%)

Branch coverage included in aggregate %.

5 of 5 new or added lines in 2 files covered. (100.0%)

959 of 3732 relevant lines covered (25.7%)

2.09 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/views/partials/error.js
1
/* This Source Code Form is subject to the terms of the Mozilla Public
2
 * License, v. 2.0. If a copy of the MPL was not distributed with this
3
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4

5
import { getMessage } from '../../utils/fluent.js'
6

7
export const error = data => {
×
8
  return `
×
9
<section class='error-page'>
10
  <img src="/images/error.svg" alt="" />
11
  <h1>
12
    ${getMessage('error-page-error-other-title', { errorCode: `<span class='error-code'>${data.statusCode}</span>` })}
13
  </h1>
14
  <p>${getMessage('error-page-error-other-copy')}</p>
15
</section>
16
`
17
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc