Throw exception if accessing a GITHUB library from build not supporting GITHUB.
This commit is contained in:
parent
1eab1f7a88
commit
8609dfe283
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue