File tree Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Expand file tree Collapse file tree 3 files changed +4
-11
lines changed Original file line number Diff line number Diff line change 1
1
## 2.5.1-wip
2
2
3
- - Don't show stack traces if a generator throws ` InvalidGenerationSourceError `
4
- from ` source_gen ` .
3
+ - Don't log stack traces for subclasses of ` Exception ` .
5
4
6
5
## 2.5.0
7
6
Original file line number Diff line number Diff line change 1
1
## 9.0.1-wip
2
2
3
- - Don't show stack traces if a generator throws ` InvalidGenerationSourceError `
4
- from ` source_gen ` .
3
+ - Don't log stack traces for subclasses of ` Exception ` .
5
4
6
5
## 9.0.0
7
6
Original file line number Diff line number Diff line change @@ -414,8 +414,7 @@ class BuildLog {
414
414
415
415
/// Renders [message] with optional [error] and [stackTrace] .
416
416
///
417
- /// Drops `build_runner` exceptions that can be caused by normal user input:
418
- /// [SyntaxErrorInAssetException] and [UnresolvableAssetException] .
417
+ /// Skips rendering [stackTrace] if [error] is an [Exception] .
419
418
String renderThrowable (
420
419
Object ? message, [
421
420
Object ? error,
@@ -427,11 +426,7 @@ class BuildLog {
427
426
result += '$error ' ;
428
427
}
429
428
430
- if (stackTrace != null &&
431
- error is ! SyntaxErrorInAssetException &&
432
- error is ! UnresolvableAssetException &&
433
- // From `source_gen`, use the name to avoid a build dependency.
434
- error.runtimeType.toString () != 'InvalidGenerationSource' ) {
429
+ if (stackTrace != null && error is ! Exception ) {
435
430
result += '\n $stackTrace ' ;
436
431
}
437
432
return result;
You can’t perform that action at this time.
0 commit comments