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

Issue 1059263004: Fix ill-formatted error messages in analyzer. (Closed)

Created:
5 years, 8 months ago by Paul Berry
Modified:
5 years, 8 months ago
Reviewers:
scheglov
CC:
reviews_dartlang.org
Target Ref:
refs/remotes/git-svn
Visibility:
Public.

Description

Fix ill-formatted error messages in analyzer. Previously, two analyzer error messages (one recently introduced by me, and one that has been around for a while) failed to provide enough arguments to populate the error message template, resulting in user-visible strings like "{0}" showing up in error messages. This CL fixes the problem, and safeguards against it happening again in the future by adding assertions to verify, at the time the error message is formatted, that enough arguments were passed. R=scheglov@google.com Committed: https://code.google.com/p/dart/source/detail?r=44911

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -4 lines) Patch
M pkg/analyzer/lib/src/generated/java_core.dart View 1 chunk +2 lines, -0 lines 0 comments Download
M pkg/analyzer/lib/src/generated/parser.dart View 2 chunks +5 lines, -3 lines 0 comments Download
M pkg/analyzer/test/generated/engine_test.dart View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 4 (1 generated)
Paul Berry
5 years, 8 months ago (2015-04-06 00:43:14 UTC) #2
scheglov
LGTM
5 years, 8 months ago (2015-04-06 14:57:54 UTC) #3
Paul Berry
5 years, 8 months ago (2015-04-06 15:28:43 UTC) #4
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as 44911 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698