Skip to content

Commit 2392c34

Browse files
authored
rethrow exception instead of silently return
1 parent 6cab616 commit 2392c34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/spring/pet-store/src/main/java/com/amazonaws/serverless/sample/spring/StreamLambdaHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public void handleRequest(InputStream inputStream, OutputStream outputStream, Co
2828
} catch (ContainerInitializationException e) {
2929
e.printStackTrace();
3030
outputStream.close();
31-
return;
31+
throw new RuntimeException(e);
3232
}
3333
}
3434

0 commit comments

Comments
 (0)