Skip to content

Commit 0659e16

Browse files
committed
Improve error logging during download process
update
1 parent ef98b5e commit 0659e16

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

backends/qualcomm/scripts/download_qnn_sdk.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,12 +146,16 @@ def _download_archive(url: str, archive_path: pathlib.Path) -> bool:
146146
logger.info("Download completed!")
147147

148148
except Exception as e:
149-
logger.error("Error during download: %s", e)
149+
logger.exception("Error during download: %s", e)
150150
return False
151151

152152
if archive_path.exists() and archive_path.stat().st_size == 0:
153153
logger.warning("Downloaded file is empty!")
154154
return False
155+
elif not archive_path.exists():
156+
logger.error("File was not downloaded!")
157+
return False
158+
155159
return True
156160

157161

0 commit comments

Comments
 (0)