← Back to team overview

kicad-developers team mailing list archive

[PATCH] rewrite error message in pcbnew BOM export

 

When running the BOM export in pcbnew on an empty board, a very obtuse 
"No Modules!" error message is displayed. This patch rewrites it to 
"Cannot export BOM: there are no footprints in the PCB".

--
Chris

commit c8363cbe351d6a22921da725748e1d599084eb45
Author: Chris Pavlina <cpavlin1@xxxxxxxxxxxxxx>
Date:   Mon Jul 20 14:45:37 2015 -0400

    Fix "No Modules!" error message

diff --git a/pcbnew/build_BOM_from_board.cpp b/pcbnew/build_BOM_from_board.cpp
index 3f1983b..ade7ef2 100644
--- a/pcbnew/build_BOM_from_board.cpp
+++ b/pcbnew/build_BOM_from_board.cpp
@@ -83,7 +83,7 @@ void PCB_EDIT_FRAME::RecreateBOMFileFromBoard( wxCommandEvent& aEvent )
 
     if( module == NULL )
     {
-        DisplayError( this, _( "No Modules!" ) );
+        DisplayError( this, _( "Cannot export BOM: there are no footprints in the PCB" ) );
         return;
     }
 

Follow ups