mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Fix formula check and correct error message
CURA-10901
This commit is contained in:
parent
9db52e3888
commit
01552556d8
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ class Formulas(Linter):
|
|||
|
||||
def check(self) -> Iterator[Diagnostic]:
|
||||
if self._settings["checks"].get("diagnostic-incorrect-formula", False):
|
||||
for check in self.checkFormulas:
|
||||
for check in self.checkFormulas():
|
||||
yield check
|
||||
|
||||
yield
|
||||
|
@ -56,7 +56,7 @@ class Formulas(Linter):
|
|||
yield Diagnostic(
|
||||
file=self._file,
|
||||
diagnostic_name="diagnostic-incorrect-formula",
|
||||
message=f"Given formula {value_dict} to calulate {key} of seems incorrect, Do you mean {self._correct_formula}? please correct the formula and try again.",
|
||||
message=f"Given formula {value_dict} to calulate {key} seems incorrect, Do you mean {self._correct_formula}? please correct the formula and try again.",
|
||||
level="Error",
|
||||
offset=found.span(0)[0],
|
||||
replacements=replacements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue