From 3450aa31683e23d332febf4b2675b61fe057e1c7 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Fri, 20 Oct 2017 02:31:36 -0400 Subject: [PATCH] +4 --- lib/src/commands/pubspec.update.g.dart | 2 +- lib/src/commands/update.dart | 4 +++- pubspec.yaml | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/src/commands/pubspec.update.g.dart b/lib/src/commands/pubspec.update.g.dart index b4406c45..52eefc08 100644 --- a/lib/src/commands/pubspec.update.g.dart +++ b/lib/src/commands/pubspec.update.g.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'package:http/src/base_client.dart' as http; import 'package:pub_semver/pub_semver.dart'; -final Version PACKAGE_VERSION = new Version(1, 2, 0, build: '3'); +final Version PACKAGE_VERSION = new Version(1, 2, 0, build: '4'); Future fetchCurrentVersion(http.BaseClient client) async { var response = await client.get('https://pub.dartlang.org/api/packages/angel_cli'); diff --git a/lib/src/commands/update.dart b/lib/src/commands/update.dart index 5eadffc4..d0e5c21c 100644 --- a/lib/src/commands/update.dart +++ b/lib/src/commands/update.dart @@ -59,8 +59,10 @@ class UpdateCommand extends Command { } } else stdout.writeln('No update available.'); - } catch (e) { + } catch (e, st) { stdout.writeln('Failed to check for update.'); + stderr.writeln(e); + stderr.writeln(st); } } } diff --git a/pubspec.yaml b/pubspec.yaml index 9cebff70..f06dd758 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ author: "Tobe O " description: "Command-line tools for the Angel framework." homepage: "https://github.com/angel-dart/angel_cli" name: "angel_cli" -version: 1.2.0+3 +version: 1.2.0+4 dependencies: # analyzer: "^0.29.0" args: ^0.13.4