Sfoglia il codice sorgente

fix error handling

theenglishway (time) 4 anni fa
parent
commit
463bc06505
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      lib/vaccins/location_store.ex

+ 1 - 0
lib/vaccins/location_store.ex

@@ -107,6 +107,7 @@ defmodule Vaccins.LocationStore do
       :ok
     else
       false -> cs |> add_error(:name, "error on insertion", []) |> apply_action(:insert)
+      e = {:error, _} -> e
     end
   end
 end