Files
wanderer/lib
GuarzoandClaude Opus 5 789d4fa884 fix(map): stop MapRepo.get/2 masking all errors as :not_found
MapRepo.get/2 flattened every error from Api.Map.by_id/1 into
{:error, :not_found}. That turned infrastructure faults into a
"map does not exist" signal: a DBConnection.OwnershipError in test
surfaced as "Failed to load map state" -> "map not loaded" ->
"Timeout waiting for map ... Check Map.Manager is running", pointing
at Map.Manager (which was running fine) instead of the real cause.

Keep the :not_found translation for a genuine Ash NotFound, and
propagate + log anything else.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-08-01 19:03:01 +00:00
..