Skip to content

Commit f7ec818

Browse files
committed
Check stack trace for fluent_api as well as ray
1 parent d463838 commit f7ec818

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/src/payloads/payload.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ abstract base class Payload {
4040
List<String> lines = current.toString().split('\n');
4141

4242
if (lines.length > 1) {
43-
// find the first item AFTER the internal call to ray
44-
int index =
45-
lines.indexWhere((line) => RegExp(r'#\d+\s+ray').hasMatch(line));
43+
RegExp regExp = RegExp(r'#\d+\s+ray|package:.*/fluent_api\.dart');
44+
int index = lines.indexWhere((line) => regExp.hasMatch(line));
4645

4746
if (index != -1) {
4847
final caller = lines[index + 1];

0 commit comments

Comments
 (0)