Skip to content

Commit f2885e2

Browse files
committed
error type to name
1 parent f25faab commit f2885e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/error-response.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default class ErrorResponse extends AbstractLambdaPlugin {
2828
errorBody = {
2929
error: {
3030
message: error.message || 'Unknown error. No error specified',
31-
type: errorType || 'Unknown',
31+
name: errorType || 'Unknown',
3232
...errorObj,
3333
_stackTrace: (error.stack || '').split('\n').map(x => x.trim())
3434
}

0 commit comments

Comments
 (0)