Skip to content

Commit

Permalink
Update error code.
Browse files Browse the repository at this point in the history
- Updated tests switch from "invalid script element" to "loading
  document failed".
  • Loading branch information
davidlehn committed Mar 6, 2020
1 parent 3203d51 commit 073b3c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/jsonld.js
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ jsonld.get = async function(url, options) {
throw new JsonLdError(
`No script tag found with id=${frag}.`,
'jsonld.InvalidScriptElement', {
code: 'invalid script element',
code: 'loading document failed',
remoteDoc
});
}
Expand Down

0 comments on commit 073b3c1

Please sign in to comment.