Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 08c56ac

Browse files
gildeaaaltay
authored andcommitted
Clearer error message when SDK file cannot be found to stage
Change "directory" to "location" in error message when SDK file cannot be found, now that --sdk_location can point to a tarball as well as a directory. ----Release Notes---- [] ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117975068
1 parent 66cd0e6 commit 08c56ac

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

google/cloud/dataflow/utils/dependency.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def stage_job_resources(options, file_copy=_dependency_file_copy,
339339
sdk_path)
340340
else:
341341
raise RuntimeError(
342-
'The file "%s" cannot be found. Its directory was specified by '
342+
'The file "%s" cannot be found. Its location was specified by '
343343
'the --sdk_location command-line option.' %
344344
sdk_path)
345345

google/cloud/dataflow/utils/dependency_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ def test_sdk_location_local_not_present(self):
260260
dependency.stage_job_resources(options)
261261
self.assertEqual(
262262
'The file "%s" cannot be found. Its '
263-
'directory was specified by the --sdk_location command-line option.' %
263+
'location was specified by the --sdk_location command-line option.' %
264264
sdk_location,
265265
cm.exception.message)
266266

0 commit comments

Comments
 (0)