mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-05-14 20:22:15 -04:00
break everything
This commit is contained in:
parent
e898074387
commit
29210c89d2
121 changed files with 2892 additions and 2608 deletions
12
lib/tools/stack_trace.dart
Normal file
12
lib/tools/stack_trace.dart
Normal file
|
@ -0,0 +1,12 @@
|
|||
import 'package:stack_trace/stack_trace.dart';
|
||||
|
||||
/// Rethrows [error] with a stacktrace that is the combination of [stackTrace]
|
||||
/// and [StackTrace.current].
|
||||
Never throwErrorWithCombinedStackTrace(Object error, StackTrace stackTrace) {
|
||||
final chain = Chain([
|
||||
Trace.current(),
|
||||
...Chain.forTrace(stackTrace).traces,
|
||||
]); // .foldFrames((frame) => frame.package == 'riverpod');
|
||||
|
||||
Error.throwWithStackTrace(error, chain.toTrace().vmTrace);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue