Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
do not throw exception, but show console message if a file could not …
Browse files Browse the repository at this point in the history
…be found when compressing
  • Loading branch information
sambaas committed Jan 6, 2022
1 parent 0dab536 commit 046b9be
Show file tree
Hide file tree
Showing 2 changed files with 568 additions and 559 deletions.
3 changes: 2 additions & 1 deletion TileBakeLibrary/BrotliCompress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ public static void Compress(string input, string output = "")
{
if(!File.Exists(input))
{
throw new FileNotFoundException();
Console.WriteLine($"Could not find file: {input}");
return;
}

//Read bytes into memory
Expand Down
Loading

0 comments on commit 046b9be

Please sign in to comment.