Skip to content

Commit

Permalink
fixed code for compatibility with deps
Browse files Browse the repository at this point in the history
- Xandra.Error.new -> raise Xandra.Error
  • Loading branch information
shinnokdisengir committed Jan 22, 2025
1 parent 5c49a91 commit 77018fb
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,12 @@ defmodule CSystem do

case result do
{:error, :timeout} ->
Xandra.Error.new(:agreement_timeout, "Schema agreement wait timeout.")
raise Xandra.Error, reason: :agreement_timeout, message: "Schema agreement wait timeout."

{:error, :no_schema_change} ->
Xandra.Error.new(:no_schema_change, "Statement did not change the schema_version.")
raise Xandra.Error,
reason: :no_schema_change,
message: "Statement did not change the schema_version."

any ->
any
Expand Down

0 comments on commit 77018fb

Please sign in to comment.