HasCompilationErrors

Description: Reports if the working copy presently has unresolved compilation errors
Returns: Boolean
Usage: Script Only.
Function Groups: Configuration Management
Related to: IsAppEditable |
Format: LayerModule\HasCompilationErrors()
Parameters: None.
Comments: Returns TRUE if the last attempted compilation of the layer failed. This is a situation that shouldn't ever be encountered, as any attempt to commit a compilation error to the repository should fail, with the working copy (WC) being rolled back to a compilable version.
However, if the WC becomes corrupted or if there are compilation dependencies outside of the working copy, then in theory the WC can be in an unresolvable, non-compilable state, which is what this subroutine reports. This function should only be called as a subroutine, following Activation.