Skip to content

Commit

Permalink
Merge pull request #12 from ghonijee/development
Browse files Browse the repository at this point in the history
add handle exception on dxAdapter class
  • Loading branch information
ghonijee authored Aug 23, 2022
2 parents 172cd53 + be5312b commit 905cb9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DxAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public function __call($method, $arguments)
try {
return $this->query->{$method}(...$arguments);
} catch (Exception $e) {
return $e;
throw new Exception("Something wrong with Eloquent query builder", 500, $e);
}
}
}

0 comments on commit 905cb9b

Please sign in to comment.