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:
|
case GITHUB:
|
||||||
#if defined(BUILD_GITHUB_PLUGIN)
|
#if defined(BUILD_GITHUB_PLUGIN)
|
||||||
return new GITHUB_PLUGIN();
|
return new GITHUB_PLUGIN();
|
||||||
|
#else
|
||||||
|
THROW_IO_ERROR( "BUILD_GITHUB_PLUGIN not enabled in cmake build environment" );
|
||||||
#endif
|
#endif
|
||||||
; // GITHUB fall thru to NULL below
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue