Fix error message for missing log stream (#4043)

This commit is contained in:
Brian Pandola 2021-06-28 22:06:14 -07:00 committed by GitHub
commit 315c357cd5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View file

@ -333,7 +333,7 @@ class LogGroup(BaseModel):
self, log_group_name, log_stream_name, log_events, sequence_token
):
if log_stream_name not in self.streams:
raise ResourceNotFoundException()
raise ResourceNotFoundException("The specified log stream does not exist.")
stream = self.streams[log_stream_name]
return stream.put_log_events(
log_group_name, log_stream_name, log_events, sequence_token