Skip to content

Commit

Permalink
improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
holmanb committed Mar 29, 2024
1 parent a4785fa commit 71b2f92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cloudinit/sources/DataSourceOpenNebula.py
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ def read_context_disk_dir(source_dir, distro, asuser=None):
context = parse_shell_config(content, asuser=asuser)
except subp.ProcessExecutionError as e:
raise BrokenContextDiskDir(
"Error processing context.sh: %s" % (e)
"Error processing context.sh: %s\ncontent:\n%s" % e, content
) from e
except IOError as e:
raise NonContextDiskDir(
Expand Down

0 comments on commit 71b2f92

Please sign in to comment.