We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b88b739 commit 9ed7360Copy full SHA for 9ed7360
1 file changed
csmock/plugins/snyk.py
@@ -115,7 +115,7 @@ def fetch_snyk(results):
115
# make sure the cache directory exists
116
os.makedirs(cache_dir, mode=0o755, exist_ok=True)
117
except OSError:
118
- results.error("failed to create snyk cache directory: %s" % cache_dir)
+ results.error(f"failed to create snyk cache directory: {cache_dir}")
119
return 1
120
121
url = args.snyk_bin_url
@@ -128,7 +128,7 @@ def fetch_snyk(results):
128
# fetch the binary executable
129
ec = results.exec_cmd(["curl", "-Lfso", snyk_bin, url])
130
if 0 != ec:
131
- results.error("failed to download snyk binary executable: %s" % url)
+ results.error(f"failed to download snyk binary executable: {url}")
132
return ec
133
134
# add eXecute permission on the downloaded file
0 commit comments