Skip to content

Commit

Permalink
Revert "don't throw exception on unpublished sheets"
Browse files Browse the repository at this point in the history
This reverts commit 6becdb1.
  • Loading branch information
Spoomer committed Dec 10, 2024
1 parent 366d97a commit b85e445
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Mimir.Worker/Initializer/TableSheetInitializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ private static async Task SyncSheetStateAsync(
var sheetState = await stateService.GetState(sheetAddress, stoppingToken);
if (sheetState is not Text sheetValue)
{
logger.Error("Expected sheet state of {SheetTypeName} to be of type {TextType}", sheetType.Name, typeof(Text));
return;
throw new InvalidCastException($"Expected sheet state to be of type 'Text'.");
}

sheet.Set(sheetValue.Value);
Expand Down

0 comments on commit b85e445

Please sign in to comment.