Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion samcli/lib/samlib/cloudformation_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,4 @@ def find_executable(execname):
except OSError as ex:
LOG.debug("Unable to find executable %s", name, exc_info=ex)

raise OSError("Unable to find AWS CLI installation under following names: {}".format(options))
raise OSError("Cannot find AWS CLI installation, was looking at executables with names: {}".format(options))
3 changes: 2 additions & 1 deletion tests/unit/lib/samlib/test_cloudformation_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def test_must_raise_error_if_executable_not_found(self, platform_system_mock, po
with self.assertRaises(OSError) as ctx:
find_executable(execname)

expected = "Unable to find AWS CLI installation under following names: {}".format(["foo.cmd", "foo.exe", "foo"])
expected = "Cannot find AWS CLI installation, was looking at executables with names: {}".format(
["foo.cmd", "foo.exe", "foo"])
self.assertEquals(expected, str(ctx.exception))

self.assertEquals(popen_mock.mock_calls, [
Expand Down