Update error message to make it a bit more informative (#2249)

This commit is contained in:
Noisyfox 2023-09-29 23:39:58 +08:00 committed by GitHub
parent ee0e6a7227
commit 761db8537e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ Flow Flow::with_spacing(float new_spacing) const
assert(m_width >= m_height);
out.m_width += new_spacing - m_spacing;
if (out.m_width < out.m_height)
throw Slic3r::InvalidArgument("Invalid spacing supplied to Flow::with_spacing()");
throw Slic3r::InvalidArgument(L("Invalid spacing supplied to Flow::with_spacing(), check your layer height and extrusion width"));
}
out.m_spacing = new_spacing;
return out;