Error info
#227
Replies: 1 comment 6 replies
-
Could you please provide a reproducer? This test case is working as expected: test('errors propagate correctly', () {
Never throwsErrorCapsule(CapsuleHandle use) =>
throw UnsupportedError('capsule should throw');
Never dependentCapsule(CapsuleHandle use) => use(throwsErrorCapsule);
final container = useContainer();
expect(
() => container.read(throwsErrorCapsule),
throwsA(isA<UnsupportedError>()),
);
expect(
() => container.read(dependentCapsule),
throwsA(isA<UnsupportedError>()),
);
}); |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Seems that any error or throw happened on a capsule body (before the return) is not printed in the output. Instead this is printed:
TypeError: null: type 'Null' is not a subtype of type 'DataflowGraphNode'
. I think this is due because you might be catching errors. Do you think it could be useful to print the error details?Beta Was this translation helpful? Give feedback.
All reactions