Skip to content

Commit cc30235

Browse files
authored
Add file name to JSON parsing error message (cloudera-labs#249)
Signed-off-by: Webster Mudge <[email protected]>
1 parent 35bf42e commit cc30235

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/action/assemble_cluster_template.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def assemble_fragments(
8181
)
8282
except json.JSONDecodeError as e:
8383
raise AnsibleActionFail(
84-
message=f"JSON parsing error: {to_text(e.msg)}",
84+
message=f"JSON parsing error for file, {fragment}: {to_text(e.msg)}",
8585
obj=to_native(e),
8686
)
8787

0 commit comments

Comments
 (0)