Fixed missing error class (good practice is to not throw, but since app is in dev state, okay)