Small tweak on error messages; better grammer.

This commit is contained in:
KtorZ 2023-01-14 14:12:42 +01:00
parent c6fe5235fe
commit b791131fd0
No known key found for this signature in database
GPG Key ID: 33173CB6F77F4277
1 changed files with 3 additions and 3 deletions

View File

@ -179,7 +179,7 @@ pub enum Error {
type_constructors: Vec<String>,
},
#[error("I tried to find '{}' in '{}' but didn't.\n", name.purple(), module_name.purple())]
#[error("I looked for '{}' in '{}' but couldn't find it.\n", name.purple(), module_name.purple())]
UnknownModuleValue {
location: Span,
name: String,
@ -187,7 +187,7 @@ pub enum Error {
value_constructors: Vec<String>,
},
#[error("I tried to find '{}' in '{}' but didn't.\n", name.purple(), module_name.purple())]
#[error("I looked for '{}' in '{}' but couldn't find it.\n", name.purple(), module_name.purple())]
UnknownModuleType {
location: Span,
name: String,
@ -196,7 +196,7 @@ pub enum Error {
},
#[error(
"I tried to find the field '{}' in a record of type '{}' but didn't.\n",
"I looked for the field '{}' in a record of type '{}' couldn't find it.\n",
label.purple(),
typ.to_pretty(4).purple()
)]