Skip to content

Commit 66a2092

Browse files
davidlehngkellogg
authored andcommitted
Update error code.
- Updated tests switch from "invalid script element" to "loading document failed".
1 parent 7cc3d1c commit 66a2092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonld.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -935,7 +935,7 @@ jsonld.get = async function(url, options) {
935935
throw new JsonLdError(
936936
`No script tag found with id=${frag}.`,
937937
'jsonld.InvalidScriptElement', {
938-
code: 'invalid script element',
938+
code: 'loading document failed',
939939
remoteDoc
940940
});
941941
}

0 commit comments

Comments
 (0)