Scope Error Message Enhancement

Improved error messages for error thrown from scope to give clearer information on what's wrong.