carto: present API InternalServerError to the user, instead of failing

This commit is contained in:
Pierre de La Morinerie 2019-01-24 18:30:14 +01:00
parent 4de069d436
commit 803364490d
4 changed files with 60 additions and 32 deletions

View file

@ -1,3 +1,5 @@
<%= render_flash(timeout: 5000, fixed: true) %>
<%= render_to_element("#{@selector} + .geo-areas",
partial: 'shared/champs/carte/geo_areas',
locals: { champ: @champ, error: @error }) %>