Skip to content

Commit 073b3c1

Browse files
committed
Update error code.
- Updated tests switch from "invalid script element" to "loading document failed".
1 parent 3203d51 commit 073b3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jsonld.js

+1-1
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)