Throw exception if accessing a GITHUB library from build not supporting GITHUB.

This commit is contained in:
Dick Hollenbeck 2013-10-17 13:46:20 -05:00
parent 1eab1f7a88
commit 8609dfe283
1 changed files with 2 additions and 1 deletions

View File

@ -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;