Skip to content

Commit

Permalink
enable stack-trace
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-acryl committed Jul 23, 2024
1 parent c5d3153 commit 2ee393d
Showing 1 changed file with 17 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ def _load_viewfile(
with open(path) as file:
raw_file_content = file.read()
except Exception as e:
self.reporter.failure("Failed to read lkml file", path, exc=e)
self.reporter.failure(
title="LKML File Loading Error",
message=f"Failed to read lkml file {path}",
exc=e,
log=True,
)
self.viewfile_cache[path] = None
return None
try:
Expand All @@ -86,7 +91,17 @@ def _load_viewfile(
self.viewfile_cache[path] = looker_viewfile
return looker_viewfile
except Exception as e:
self.reporter.failure("Failed to parse lkml file", path, exc=e)
self.reporter.failure(
title="LKML File Parsing Error",
message=f"Failed to parse lookml file {path}",
exc=e,
log=True,
)

logger.debug(f"Raw file content for path {path}")

logger.debug(raw_file_content)

self.viewfile_cache[path] = None
return None

Expand Down

0 comments on commit 2ee393d

Please sign in to comment.