Provide more information when SetVariableValue() fails