common: throw error when missing credentials in non g[ac]e env