Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
246bf60f
Unverified
Commit
246bf60f
authored
Oct 29, 2020
by
Jonah Williams
Committed by
GitHub
Oct 29, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[flutter_tools] allow default driver log to fail due to IO error (#69316)
parent
470346f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
error.dart
packages/flutter_driver/lib/src/common/error.dart
+6
-2
No files found.
packages/flutter_driver/lib/src/common/error.dart
View file @
246bf60f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// found in the LICENSE file.
import
'dart:io'
show
stderr
;
import
'dart:io'
show
stderr
,
FileSystemException
;
/// Standard error thrown by Flutter Driver API.
/// Standard error thrown by Flutter Driver API.
class
DriverError
extends
Error
{
class
DriverError
extends
Error
{
...
@@ -51,5 +51,9 @@ typedef DriverLogCallback = void Function(String source, String message);
...
@@ -51,5 +51,9 @@ typedef DriverLogCallback = void Function(String source, String message);
///
///
/// The default implementation prints `"$source: $message"` to stderr.
/// The default implementation prints `"$source: $message"` to stderr.
DriverLogCallback
driverLog
=
(
String
source
,
String
message
)
{
DriverLogCallback
driverLog
=
(
String
source
,
String
message
)
{
stderr
.
writeln
(
'
$source
:
$message
'
);
try
{
stderr
.
writeln
(
'
$source
:
$message
'
);
}
on
FileSystemException
{
// May encounter IO error: https://github.com/flutter/flutter/issues/69314
}
};
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment