Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Issue 2161693002: Catch file-not-found exception (Closed)

Created:
4 years, 5 months ago by stanm
Modified:
4 years, 5 months ago
Reviewers:
Jennifer Messerly
CC:
dev-compiler+reviews_dartlang.org
Base URL:
https://github.com/dart-lang/dev_compiler@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Catch file-not-found exception If a non-existing file was passed to DDC before it would just throw an uncaught exception and crash. Now the exception is caught and an error message is printed together with the usage information. BUG=https://github.com/dart-lang/dev_compiler/issues/605 R=jmesserly@google.com Committed: https://github.com/dart-lang/dev_compiler/commit/19a2340eebab18fd2a851da04f8e4f33e730a113

Patch Set 1 #

Patch Set 2 : Move handling to compiler.dart #

Total comments: 4

Patch Set 3 : AnalysisException -> UsageException #

Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -3 lines) Patch
M lib/src/compiler/compiler.dart View 1 2 3 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
stanm
I'm not sure this is the best way to handle this. I tried adding a ...
4 years, 5 months ago (2016-07-18 17:44:00 UTC) #2
Jennifer Messerly
LGTM!
4 years, 5 months ago (2016-07-18 17:50:33 UTC) #3
stanm
I'm happy with the second patch set. PTAL
4 years, 5 months ago (2016-07-18 18:51:23 UTC) #4
Jennifer Messerly
LGTM https://codereview.chromium.org/2161693002/diff/20001/lib/src/compiler/compiler.dart File lib/src/compiler/compiler.dart (right): https://codereview.chromium.org/2161693002/diff/20001/lib/src/compiler/compiler.dart#newcode82 lib/src/compiler/compiler.dart:82: throw new AnalysisException('could not create a source for ...
4 years, 5 months ago (2016-07-18 19:22:01 UTC) #5
stanm
Implemented changes. https://codereview.chromium.org/2161693002/diff/20001/lib/src/compiler/compiler.dart File lib/src/compiler/compiler.dart (right): https://codereview.chromium.org/2161693002/diff/20001/lib/src/compiler/compiler.dart#newcode82 lib/src/compiler/compiler.dart:82: throw new AnalysisException('could not create a source ...
4 years, 5 months ago (2016-07-18 21:37:29 UTC) #6
stanm
4 years, 5 months ago (2016-07-18 21:37:52 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
19a2340eebab18fd2a851da04f8e4f33e730a113 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698