Skip to content

Commit

Permalink
Fix some error messages not being template literals
Browse files Browse the repository at this point in the history
  • Loading branch information
robintown committed Sep 3, 2023
1 parent 29867f6 commit c43e98e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/semantics/denote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -722,9 +722,9 @@ const cRelComposition: CompositionRule = (branch, left, right) => {

const dComposition: CompositionRule = (branch, left, right) => {
if (left.denotation === null) {
throw new Error('D composition on a null ${left.label}');
throw new Error(`D composition on a null ${left.label}`);
} else if (right.denotation === null) {
throw new Error('D composition on a null ${right.label}');
throw new Error(`D composition on a null ${right.label}`);
} else {
// Because unifyDenotations is heuristic and asymmetric, and nP will have more
// binding information than D, we need to pretend that nP is on the left here
Expand Down

0 comments on commit c43e98e

Please sign in to comment.