Override CalculateFrameVariableError function in SymbolFileOnDemand.
Implement it by calling the same function of m_sym_file_impl, so that the wrapped symfile's error can be exposed.
This will enable the vscode debug session (which has the symbol ondemand enabled by default) to show error in the LOCALS variable section when there is error.
This piece of code was added for symbol on demand feature(https://reviews.llvm.org/rG7b81192d462bbd8031d5c665e29cd6b4c0c6887a). And missing overridden CalculateFrameVariableError is causing the error in symfile not being able to be exposed.
Added unit test that would fail before this patch, and now is succeeding.
Please add a unit test which should fail in symbol on-demand mode but succeeds after your patch. Checkout Greg's original test checking frame variable error as example.