Skip to content

Commit

Permalink
Add debug only failure so CI can catch issues where sqlite isn't load…
Browse files Browse the repository at this point in the history
…ing for some reasons
  • Loading branch information
CyrusNajmabadi committed Nov 18, 2021
1 parent 7bc68d9 commit afc06e1
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

using System;
using System.Composition;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -54,6 +55,10 @@ private static bool TryInitializeLibrariesLazy()
catch (Exception e) when (e is DllNotFoundException or EntryPointNotFoundException)
{
StorageDatabaseLogger.LogException(e);

// In debug also insta fail here. That way if there is an issue with sqlite (for example with authoring,
// or with some particular configuration) that get CI coverage that reveals this.
Debug.Fail("Sqlite failed to load: " + e);
return false;
}

Expand Down

0 comments on commit afc06e1

Please sign in to comment.