Skip to content

Commit 5611ccc

Browse files
committed
Improve error printing
1 parent bfa15ca commit 5611ccc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

out_functions/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ exports.handler = async (event, context, callback) => {
2121
};
2222
} catch (error) {
2323
console.error(error);
24-
return { statusCode: 500, body: JSON.stringify(error) };
24+
return { statusCode: 500, body: JSON.stringify({ error: error.message }) };
2525
}
2626
};
2727

0 commit comments

Comments
 (0)