Removed the undocumented 'modes' (production/debug), in favor of always throwing errors when they happen