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
f512e86c
Unverified
Commit
f512e86c
authored
Aug 14, 2020
by
Michael Goderbauer
Committed by
GitHub
Aug 14, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use reportError (over onError) everywhere (#63784)
parent
37ddad61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
assertions.dart
packages/flutter/lib/src/foundation/assertions.dart
+3
-0
image_provider.dart
packages/flutter/lib/src/painting/image_provider.dart
+6
-8
No files found.
packages/flutter/lib/src/foundation/assertions.dart
View file @
f512e86c
...
...
@@ -871,6 +871,9 @@ class FlutterError extends Error with DiagnosticableTreeMixin implements Asserti
///
/// Set this to null to silently catch and ignore errors. This is not
/// recommended.
///
/// Do not call [onError] directly, instead, call [reportError], which
/// forwards to [onError] if it is not null.
static
FlutterExceptionHandler
?
onError
=
(
FlutterErrorDetails
details
)
=>
presentError
(
details
);
/// Called by the Flutter framework before attempting to parse a [StackTrace].
...
...
packages/flutter/lib/src/painting/image_provider.dart
View file @
f512e86c
...
...
@@ -401,14 +401,12 @@ abstract class ImageProvider<T extends Object> {
};
return
true
;
}());
if
(
FlutterError
.
onError
!=
null
)
{
FlutterError
.
onError
!(
FlutterErrorDetails
(
context:
ErrorDescription
(
'while checking the cache location of an image'
),
informationCollector:
collector
,
exception:
exception
,
stack:
stack
,
));
}
FlutterError
.
reportError
(
FlutterErrorDetails
(
context:
ErrorDescription
(
'while checking the cache location of an image'
),
informationCollector:
collector
,
exception:
exception
,
stack:
stack
,
));
completer
.
complete
(
null
);
}
},
...
...
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