Skip to content

Commit

Permalink
🚸 (parser): Improve type handler not found error message
Browse files Browse the repository at this point in the history
semver: patch
  • Loading branch information
Somfic committed Jun 13, 2024
1 parent 8bb2a21 commit dad925a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/parser/typing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ pub fn parse(
.type_lookup
.get(&token.token_type)
.ok_or(Diagnostic::error(
range.position,
cursor,
range.length,
format!("No type handler for {:?}", token.token_type),
format!("Cannot create a type from {}", token.token_type),
))?;

let (mut left_hand_side, new_cursor) = type_handler(parser, cursor)?;
Expand Down

0 comments on commit dad925a

Please sign in to comment.