Changed the scope in error message to actually be the scope