mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 12:25:56 +08:00
Formatted the messages
This commit is contained in:
parent
0070cb7af0
commit
67688aad95
@ -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…
x
Reference in New Issue
Block a user