Chromium Code Reviews| Index: tools/version.dart |
| diff --git a/tools/version.dart b/tools/version.dart |
| index 8b70a29beb58bce84a5579a981fae55acc613366..2b2acb99e61839a59212336ab0aaf20085770670 100644 |
| --- a/tools/version.dart |
| +++ b/tools/version.dart |
| @@ -12,8 +12,7 @@ void main() { |
| Future f = version.getVersion(); |
| f.then((currentVersion) { |
| print(currentVersion); |
| - }); |
| - f.handleException((e) { |
| + }).catchError((e) { |
| print("Could not create version number, failed with: $e"); |
| return true; |
| }); |