diff --git a/common/view/view.cpp b/common/view/view.cpp index b45ea09aa4..339d446119 100644 --- a/common/view/view.cpp +++ b/common/view/view.cpp @@ -177,7 +177,7 @@ private: for( int layer : aLayers ) { wxCHECK2_MSG( layer >= 0 && layer < VIEW::VIEW_MAX_LAYERS, continue, - wxT( "Invalid layer number" ) ); + wxString::Format( wxT( "Invalid layer number: %d" ), layer ) ); m_layers.push_back( layer ); } }