added error handling when installing formula not found