Skip to content

Commit 7423168

Browse files
committed
make sure warning about missing pack is printed to stderr
1 parent 93b1b30 commit 7423168

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

misc/scripts/resolve-code-scanning-query-packs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@ def get_query_metadata(key, metadata, queryfile):
115115
shell=True, capture_output=True, text=True)
116116

117117
if queries_subp.returncode != 0:
118-
print("Couldn't find query pack '%s' for language '%s'. Do you have the right repositories in the right places (search path: '%s')?" % (pack, lang, codeql_search_path))
118+
print(
119+
"Warning: couldn't find query pack '%s' for language '%s'. Do you have the right repositories in the right places (search path: '%s')?" % (pack, lang, codeql_search_path),
120+
file=sys.stderr
121+
)
119122
continue
120123

121124
# Investigate metadata for every query by using 'codeql resolve metadata'

0 commit comments

Comments
 (0)