From 8609dfe2830661c38e6701783b753a87a0e91c6f Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Thu, 17 Oct 2013 13:46:20 -0500 Subject: [PATCH] Throw exception if accessing a GITHUB library from build not supporting GITHUB. --- pcbnew/io_mgr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/io_mgr.cpp b/pcbnew/io_mgr.cpp index baef3cbb59..355bebd3da 100644 --- a/pcbnew/io_mgr.cpp +++ b/pcbnew/io_mgr.cpp @@ -79,8 +79,9 @@ PLUGIN* IO_MGR::PluginFind( PCB_FILE_T aFileType ) case GITHUB: #if defined(BUILD_GITHUB_PLUGIN) return new GITHUB_PLUGIN(); +#else + THROW_IO_ERROR( "BUILD_GITHUB_PLUGIN not enabled in cmake build environment" ); #endif - ; // GITHUB fall thru to NULL below } return NULL;