feat: Added error handing for non-dev env