Publishing empty snapshot should fail.
Fix error message.
Style fixes.
Fix tests.