mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 06:27:26 -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(
|
||||
file = self._file,
|
||||
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",
|
||||
offset = found.span(0)[0],
|
||||
replacements = [Replacement(
|
||||
|
|
|
@ -23,19 +23,19 @@ class Meshes:
|
|||
yield Diagnostic(
|
||||
file = self._file,
|
||||
diagnostic_name = "diagnostic-mesh-file-extension",
|
||||
message = f"Extension **{self._file.suffix}** not supported, use **3mf**, **obj** or **stl**",
|
||||
level = "Error"
|
||||
message = f"Extension {self._file.suffix} not supported, use 3mf, obj or stl",
|
||||
level = "Error",
|
||||
offset = 1
|
||||
)
|
||||
yield
|
||||
|
||||
def checkFileSize(self):
|
||||
|
||||
if self._file.stat().st_size > self._max_file_size:
|
||||
yield Diagnostic(
|
||||
file = self._file,
|
||||
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",
|
||||
offset = 0
|
||||
offset = 1
|
||||
)
|
||||
yield
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue