removing unused vars and throwing the errors

                   
|Q            |A  |
|---          |---|
|Bug Fix?     |n  |
|New Feature? |n  |
|BC Breaks?   |n  |
|Deprecations?|n  |
|Tests Pass?  |n  |
|Fixed Tickets|   |
|License      |MIT|
|Doc PR       |   |
                   


 Sent using [Gush](https://github.com/gushphp/gush)
error was not even defined as a variable, most of the variables actually all are private. So doubt an error like this can be shared without context. You continue dangerously the execution so eating up these errors which i think are not going to be reported in the current state the code is in.