OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 library fletchc.please_report_crash; | 5 library fletchc.please_report_crash; |
6 | 6 |
7 import 'guess_configuration.dart' show | 7 import 'guess_configuration.dart' show |
8 fletchVersion; | 8 fletchVersion; |
9 | 9 |
10 bool crashReportRequested = false; | 10 bool crashReportRequested = false; |
11 | 11 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 StringBuffer buffer = new StringBuffer(); | 65 StringBuffer buffer = new StringBuffer(); |
66 buffer.writeln(safeToString(error)); | 66 buffer.writeln(safeToString(error)); |
67 if (stackTrace != null) { | 67 if (stackTrace != null) { |
68 buffer.writeln(safeToString(stackTrace)); | 68 buffer.writeln(safeToString(stackTrace)); |
69 } else { | 69 } else { |
70 buffer.writeln("No stack trace."); | 70 buffer.writeln("No stack trace."); |
71 } | 71 } |
72 return '$buffer'; | 72 return '$buffer'; |
73 } | 73 } |
OLD | NEW |