Got rid of custom errors to fix deployment error