소스 검색

fix error handling

theenglishway (time) 4 년 전
부모
커밋
463bc06505
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  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