Skip to content

Commit

Permalink
chore: misc text fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Princesseuh committed Jan 4, 2023
1 parent c41a180 commit d17ba6f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/astro/src/core/errors/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function createSafeError(err: any): Error {

(
error as SSRError
).hint = `To get as much information as possible from your errors, make sure to throw Error objects instead of \`${typeof err}\`. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error for more information`;
).hint = `To get as much information as possible from your errors, make sure to throw Error objects instead of \`${typeof err}\`. See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error for more information.`;

return error;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/astro/test/error-build-location.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ describe('Errors information in build', () => {
/** @type {import('./test-utils').Fixture} */
let fixture;

it('Does not crash the dev server', async () => {
it('includes the file where the error happened', async () => {
fixture = await loadFixture({
root: './fixtures/error-build-location',
});
Expand Down

0 comments on commit d17ba6f

Please sign in to comment.