Unverified Commit 07c592d9 authored by Alexander Aprelev's avatar Alexander Aprelev Committed by GitHub

Report early error if appropriate host local engine is not found. (#26766)

parent 5d0c1b86
......@@ -457,6 +457,9 @@ class FlutterCommandRunner extends CommandRunner<void> {
final String basename = fs.path.basename(engineBuildPath);
final String hostBasename = 'host_' + basename.replaceFirst('_sim_', '_').substring(basename.indexOf('_') + 1);
final String engineHostBuildPath = fs.path.normalize(fs.path.join(fs.path.dirname(engineBuildPath), hostBasename));
if (!fs.isDirectorySync(engineHostBuildPath)) {
throwToolExit(userMessages.runnerNoEngineBuild(engineHostBuildPath), exitCode: 2);
}
return EngineBuildPaths(targetEngine: engineBuildPath, hostEngine: engineHostBuildPath);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment