Make hot mode a little less aggressive about catching errors. (#8743)

It was resulting in weird situations where the tool would dump an
error message and stack but not quit, or would fail hard but then just
hang.

Instead, specifically catch errors you expect. As an example of this,
there's one error we expect from the DartDependencySetBuilder, so we
catch that one, turn it into a dedicated exception class, then in the
caller catch that specific exception.
This commit is contained in:
Ian Hickson
2017-03-13 14:50:30 -07:00
committed by GitHub
parent 8a36588627
commit 0edc4d2a76
13 changed files with 133 additions and 46 deletions

View File

@@ -0,0 +1,3 @@
analyzer:
exclude:
- '**'

View File

@@ -0,0 +1,6 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'package:rochambeau/you_have_your_orders_now_go_man_go.dart';

View File

@@ -0,0 +1,3 @@
analyzer:
exclude:
- '**'

View File

@@ -0,0 +1 @@
self:lib/

View File

@@ -0,0 +1,5 @@
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
import 'amaze/and/astonish.dart';

View File

@@ -0,0 +1 @@
name: self