Throw exception when failing to look up shader locations
Fix typo in error handler