Don't erroneously print "step file written"

Fix #9193
This commit is contained in:
Marek Roszko 2021-09-19 20:54:33 -04:00
parent a71d856e94
commit b2ba86578b
1 changed files with 9 additions and 2 deletions

View File

@ -209,6 +209,10 @@ int PANEL_KICAD2STEP::RunConverter()
ReportMessage( _( "\n** Error writing STEP file. **\n" ) );
return -1;
}
else
{
ReportMessage( wxString::Format( _( "\nSTEP file '%s' created.\n" ), outfile ) );
}
}
catch( const Standard_Failure& e )
{
@ -222,13 +226,16 @@ int PANEL_KICAD2STEP::RunConverter()
return -1;
}
}
else
{
ReportMessage( _( "\n** Error reading kicad_pcb file. **\n" ) );
return -1;
}
wxString msgs, errs;
msgs << msgs_from_opencascade.str();
ReportMessage( msgs );
ReportMessage( wxString::Format( _( "\nSTEP file '%s' created.\n" ), outfile ) );
errs << errors_from_opencascade.str();
ReportMessage( errs );