dkataskin / erlazure

Windows Azure Erlang bindings
BSD 3-Clause "New" or "Revised" License
35 stars 53 forks source link

Fixes error when blob is not found #30

Closed BrunoTCouto closed 4 years ago

BrunoTCouto commented 4 years ago

Hello !

During the development of my application, I faced an issue when the file does not exist in storage account and I try an :erlazure.get_blob.

Original error:

[error] GenServer #PID<0.960.0> terminating
** (CaseClauseError) no case clause matching: :error
    (erlazure) /Users/brunocouto/Documents/GitHub/sim-elixir-upload-photo/deps/erlazure/src/erlazure.erl:554: :erlazure.handle_call/3
    (stdlib) gen_server.erl:661: :gen_server.try_handle_call/4
    (stdlib) gen_server.erl:690: :gen_server.handle_msg/6
    (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

I'm new to elixir and i'm not sure if this is the best solution. Any help will be appreciated !