未验证 提交 78c0e2e7 编写于 作者: D Dan Field 提交者: GitHub

stderr may be null (#27586)

上级 6d9e1b29
......@@ -29,8 +29,8 @@ class FormattingException implements Exception {
String toString() {
final StringBuffer output = StringBuffer(runtimeType.toString());
output.write(': $message');
final String stderr = result?.stderr! as String;
if (stderr.isNotEmpty) {
final String? stderr = result?.stderr as String?;
if (stderr?.isNotEmpty == true) {
output.write(':\n$stderr');
}
return output.toString();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册