This version of Unity is unsupported.

ShaderInfo.hasErrors

public bool hasErrors;

Description

Indicates whether the shader has compilation errors (Read Only).