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 17f5729
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ defmodule CSystem do

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

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

any ->
any
Expand Down

0 comments on commit 17f5729

Please sign in to comment.