flutter.buildFlutterApplication: Properly throw unsupported host platform error

This commit is contained in:
hacker1024 2024-01-18 11:59:38 +11:00
parent 62029c27a1
commit 046da09ddd

View File

@ -173,4 +173,4 @@ let
};
in
(buildDartApplication.override { dart = flutter.override { supportedTargetFlutterPlatforms = [ "universal" flutterHostPlatform ]; }; })
hostPlatforms.${flutterHostPlatform} or "Unsupported Flutter host platform: ${flutterHostPlatform}"
hostPlatforms.${flutterHostPlatform} or (throw "Unsupported Flutter host platform: ${flutterHostPlatform}")