When an invalid SMD file is detected, it now produces an error hopefully sufficient for understanding and resolving the problem.