Skip to content

Commit 6700068

Browse files
committed
Add debug print for missing asset hash file
Adds a debugPrint statement to log when the asset hash file is not found during asset extraction, aiding in debugging missing hash issues.
1 parent de95343 commit 6700068

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/serious_python_platform_interface/lib/src

src/serious_python_platform_interface/lib/src/utils.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ Future<String> extractAssetOrFile(String path,
2929
try {
3030
assetHash = (await rootBundle.loadString("$path.hash")).trim();
3131
// ignore: empty_catches
32-
} catch (e) {}
32+
} catch (e) {
33+
debugPrint("No asset hash file found for $path.hash: $e");
34+
}
3335
if (await hashFile.exists()) {
3436
destHash = (await hashFile.readAsString()).trim();
3537
}

0 commit comments

Comments
 (0)