Skip to content

Commit

Permalink
Update AnimationClip.js
Browse files Browse the repository at this point in the history
standardize error messages
  • Loading branch information
epreston committed Aug 6, 2023
1 parent 5e5ed43 commit 0fb33c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/animation/src/AnimationClip.js
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,12 @@ function getTrackTypeForValueTypeName(typeName) {
return StringKeyframeTrack;
}

throw new Error('KeyframeTrack: Unsupported typeName: ' + typeName);
throw new Error('KeyframeTrack: unsupported typeName: ' + typeName);
}

function parseKeyframeTrack(json) {
if (json.type === undefined) {
throw new Error('KeyframeTrack: track type undefined, can not parse');
throw new Error('KeyframeTrack: can not parse track type: undefined');
}

const trackType = getTrackTypeForValueTypeName(json.type);
Expand Down

0 comments on commit 0fb33c8

Please sign in to comment.