Skip to content

Commit 740138c

Browse files
authored
Add Response parameter to ParseErrorLogger callback (#859)
1 parent 4c9afc2 commit 740138c

6 files changed

Lines changed: 83 additions & 70 deletions

File tree

generator/CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 10.1.1 (Unreleased)
2+
- Add Response parameter to logError response data parsing callback
3+
14
## 10.1.0
25

36
- Add lean_builder as a dependency to support experimental lean_builder integration

generator/lib/src/generator.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3689,7 +3689,9 @@ MultipartFile.fromFileSync(i.path,
36893689
const Code('try {'),
36903690
child,
36913691
const Code('} on Object catch (e, s) {'),
3692-
const Code('$_errorLoggerVar?.logError(e, s, $_optionsVar);'),
3692+
const Code(
3693+
'$_errorLoggerVar?.logError(e, s, $_optionsVar, $_resultVar);',
3694+
),
36933695
const Code('rethrow;'),
36943696
const Code('}'),
36953697
]);

0 commit comments

Comments
 (0)