mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Formatted the messages
This commit is contained in:
parent
0070cb7af0
commit
67688aad95
2 changed files with 6 additions and 6 deletions
|
@ -44,7 +44,7 @@ class Definition:
|
||||||
yield Diagnostic(
|
yield Diagnostic(
|
||||||
file = self._file,
|
file = self._file,
|
||||||
diagnostic_name = "diagnostic-definition-redundant-override",
|
diagnostic_name = "diagnostic-definition-redundant-override",
|
||||||
message = f"Overriding **{key}** with the same value (**{value}**) as defined in parent definition: **{definition['inherits']}**",
|
message = f"Overriding {key} with the same value ({value}) as defined in parent definition: {definition['inherits']}",
|
||||||
level = "Warning",
|
level = "Warning",
|
||||||
offset = found.span(0)[0],
|
offset = found.span(0)[0],
|
||||||
replacements = [Replacement(
|
replacements = [Replacement(
|
||||||
|
|
|
@ -23,19 +23,19 @@ class Meshes:
|
||||||
yield Diagnostic(
|
yield Diagnostic(
|
||||||
file = self._file,
|
file = self._file,
|
||||||
diagnostic_name = "diagnostic-mesh-file-extension",
|
diagnostic_name = "diagnostic-mesh-file-extension",
|
||||||
message = f"Extension **{self._file.suffix}** not supported, use **3mf**, **obj** or **stl**",
|
message = f"Extension {self._file.suffix} not supported, use 3mf, obj or stl",
|
||||||
level = "Error"
|
level = "Error",
|
||||||
|
offset = 1
|
||||||
)
|
)
|
||||||
yield
|
yield
|
||||||
|
|
||||||
def checkFileSize(self):
|
def checkFileSize(self):
|
||||||
|
|
||||||
if self._file.stat().st_size > self._max_file_size:
|
if self._file.stat().st_size > self._max_file_size:
|
||||||
yield Diagnostic(
|
yield Diagnostic(
|
||||||
file = self._file,
|
file = self._file,
|
||||||
diagnostic_name = "diagnostic-mesh-file-size",
|
diagnostic_name = "diagnostic-mesh-file-size",
|
||||||
message = f"Mesh file with a size **{self._file.stat().st_size}** is bigger then allowed maximum of **{self._max_file_size}**",
|
message = f"Mesh file with a size {self._file.stat().st_size} is bigger then allowed maximum of {self._max_file_size}",
|
||||||
level = "Error",
|
level = "Error",
|
||||||
offset = 0
|
offset = 1
|
||||||
)
|
)
|
||||||
yield
|
yield
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue