Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 8744c93

Browse files
authored
[Impeller] Make validation errors fatal in non-release builds. (#36812)
1 parent 5c10a44 commit 8744c93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

impeller/base/validation.cc

+4
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ ValidationLog::ValidationLog() = default;
2424

2525
ValidationLog::~ValidationLog() {
2626
if (sValidationLogsDisabledCount <= 0) {
27+
#if (FLUTTER_RUNTIME_MODE == FLUTTER_RUNTIME_MODE_RELEASE)
2728
FML_LOG(ERROR) << stream_.str();
2829
ImpellerValidationBreak();
30+
#else
31+
FML_LOG(FATAL) << stream_.str();
32+
#endif
2933
}
3034
}
3135

0 commit comments

Comments
 (0)