Chromium Code Reviews| Index: frog/value.dart |
| diff --git a/frog/value.dart b/frog/value.dart |
| index 8c357ae85dd359a161d3c6117d02234c274a8e32..f58983f9385dd8662f7cc4981f767ef559359ae0 100644 |
| --- a/frog/value.dart |
| +++ b/frog/value.dart |
| @@ -177,7 +177,11 @@ class Value { |
| if (member == null && !isSuper && !isType) { |
| member = context.findMembers(name); |
| if (member == null && !isDynamic) { |
| - world.warning('$name is not defined anywhere in the world.', |
| + var where = 'the world'; |
| + if (name.startsWith('_')) { |
| + where = 'library "${context.library.name}"'; |
|
jimhug
2011/12/14 19:00:57
Nice message fix.
|
| + } |
| + world.warning('$name is not defined anywhere in $where.', |
| node.span); |
| } |
| } |