Index: utils/apidoc/apidoc.dart |
diff --git a/utils/apidoc/apidoc.dart b/utils/apidoc/apidoc.dart |
index df41c3b1feef249a9d908f92bd77b7ff9ac436fb..1d29041b76810c073c5d9220dc75af312e25d9eb 100644 |
--- a/utils/apidoc/apidoc.dart |
+++ b/utils/apidoc/apidoc.dart |
@@ -180,9 +180,8 @@ void main(List<String> args) { |
packageRoot)) |
.then((_) => compileScript(mode, outputDir, libPath, apidoc.tmpPath)) |
.then((_) => print(apidoc.status)) |
- .catchError((e) { |
+ .catchError((e, trace) { |
print('Error: generation failed: ${e}'); |
- var trace = getAttachedStackTrace(e); |
if (trace != null) print("StackTrace: $trace"); |
apidoc.cleanup(); |
exit(1); |