Chromium Code Reviews| Index: tools/dom/docs/bin/docs.dart |
| diff --git a/tools/dom/docs/bin/docs.dart b/tools/dom/docs/bin/docs.dart |
| index 697243268ca547d807d3c9141c9838742b445401..ab5aebd62b8de604abce972837de16af965f5abf 100644 |
| --- a/tools/dom/docs/bin/docs.dart |
| +++ b/tools/dom/docs/bin/docs.dart |
| @@ -18,10 +18,11 @@ final Path lib_path = scriptDir.append('../../../../sdk/').canonicalize(); |
| main() { |
| print('Converting HTML docs from $lib_path to $json_path.'); |
| - var anyErrors = convert(lib_path, json_path); |
| - |
| - print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"}' |
| - ' errors.'); |
| + convert(lib_path, json_path) |
| + .then((bool anyErrors) { |
| + print('Converted HTML docs ${anyErrors ? "with $anyErrors" : "without"}' |
|
Emily Fortuna
2013/03/27 21:21:47
if anyErrors is true, then wouldn't this print out
Andrei Mouravski
2013/03/27 21:47:26
Done.
|
| + ' errors.'); |
| + }); |
| } |
| /** |
| @@ -29,4 +30,4 @@ main() { |
| * script. |
| */ |
| Path get scriptDir => |
| - new Path(new Options().script).directoryPath; |
| + new Path(new Options().script).directoryPath; |