Skip to content

Fix MapSaver.save() swallowing API errors#877

Merged
JeroenDeDauw merged 2 commits intomasterfrom
fix/map-saver-error-handling
Apr 5, 2026
Merged

Fix MapSaver.save() swallowing API errors#877
JeroenDeDauw merged 2 commits intomasterfrom
fix/map-saver-error-handling

Conversation

@JeroenDeDauw
Copy link
Copy Markdown
Member

Fixes #870

The .then(paremeters.done) call had no .catch() handler. On API failure,
the save button disappears, no error is shown, and changes are trapped.
Add error handler that alerts the user about the failure.

Fixes #870

The `.then(paremeters.done)` call had no `.catch()` handler. On API failure,
the save button disappears, no error is shown, and changes are trapped.
Add error handler that alerts the user about the failure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JeroenDeDauw JeroenDeDauw force-pushed the fix/map-saver-error-handling branch 3 times, most recently from f41d774 to 7635b56 Compare April 5, 2026 20:07
Verifies that when mw.Api().edit() fails, the onError callback is
called instead of silently swallowing the error.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@JeroenDeDauw JeroenDeDauw force-pushed the fix/map-saver-error-handling branch from 7635b56 to d4357dd Compare April 5, 2026 20:35
@JeroenDeDauw JeroenDeDauw marked this pull request as ready for review April 5, 2026 20:42
@JeroenDeDauw JeroenDeDauw merged commit 5a6aa53 into master Apr 5, 2026
6 checks passed
@JeroenDeDauw JeroenDeDauw deleted the fix/map-saver-error-handling branch April 5, 2026 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MapSaver.save() swallows API errors silently

1 participant