Make metadata.deploy fail instead of never resolving on incorrect input