Skip to content

Commit 61b67ec

Browse files
committed
Fix error messages.
1 parent 0f18f13 commit 61b67ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/events.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ api.unhandledEventHandler = function({event}) {
9999
// throw with event details
100100
api.throwUnacceptableEventHandler = function({event}) {
101101
throw new JsonLdError(
102-
event.message,
102+
'Unacceptable event occurred.',
103103
'jsonld.UnacceptableEvent',
104104
{event});
105105
};
@@ -120,7 +120,7 @@ api.strictModeEventHandler = [
120120
// fail on all warnings
121121
if(event.level === 'warning') {
122122
throw new JsonLdError(
123-
event.message,
123+
'Strict mode violation occurred.',
124124
'jsonld.StrictModeViolationEvent',
125125
{event});
126126
}

0 commit comments

Comments
 (0)