diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-03-25 11:04:02 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-03-25 11:04:02 +1300 |
commit | 34904ce10610d8b08126b6a1cd730878348f1083 (patch) | |
tree | 89a58d283c8db6678a8aeb096bacf767c597e3d3 /src | |
parent | 448e6f93d4ac6ae4b592d2dc8c3f98230f196e6a (diff) | |
download | bedrock-asm-34904ce10610d8b08126b6a1cd730878348f1083.zip |
Improve wording of error messages
Diffstat (limited to 'src')
-rw-r--r-- | src/stages/semantic_tokens.rs | 2 | ||||
-rw-r--r-- | src/stages/syntactic_tokens.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/stages/semantic_tokens.rs b/src/stages/semantic_tokens.rs index ca5b27a..365546f 100644 --- a/src/stages/semantic_tokens.rs +++ b/src/stages/semantic_tokens.rs @@ -63,7 +63,7 @@ fn report_semantic_error(error: &Tracked<SemanticError>, source_code: &str) { let context = Context { source_code: &source_code, source: &error.source }; let message = match &error.value { SemanticError::InvocationBeforeDefinition => - "Invocation before definition", + "Macro cannot be invoked before it has been defined", }; report_source_issue(LogLevel::Error, &context, message); diff --git a/src/stages/syntactic_tokens.rs b/src/stages/syntactic_tokens.rs index 57e78e7..4c258c6 100644 --- a/src/stages/syntactic_tokens.rs +++ b/src/stages/syntactic_tokens.rs @@ -50,7 +50,7 @@ fn report_syntactic_error(error: &Tracked<SyntacticError>, source_code: &str) { let context = Context { source_code: &source_code, source: &error.source }; let message = match &error.value { SyntacticError::UnterminatedBlock => - "Block was not terminated, add a '}}' character to terminate", + "Block was not terminated, add a '}' character to terminate", SyntacticError::UnterminatedComment => "Comment was not terminated, add a ')' character to terminate", SyntacticError::UnterminatedRawString => |