Comments (4)
We have just recently changed the project to no longer handle Ecto changes errors as 422, because those are intentionally not logged, causing errors to be silenced.
Given that you would not want to raise those on HTML projects, since you usually have to re-render, and given that the fallback controller is a better abstraction for APIs, I believe we should not add this and similar behavior back. :)
from phoenix_ecto.
@josevalim what is the proper way to handle InvalidChangesetError after say a Repo.insert!()
call fails? should I just use Repo.insert()
instead and rely on FallbackController? using Repo.insert!()
has allowed me to write cleaner code using the pipe operator.
from phoenix_ecto.
should I just use Repo.insert() instead and rely on FallbackController?
Yes.
from phoenix_ecto.
Closing per the above.
from phoenix_ecto.
Related Issues (20)
- (chore): upgrade to latest ecto version HOT 2
- Error on inputs_for when using with MFA option on cast_assoc HOT 2
- Missed `InvalidChangesetError` errors on `apply_action!/2` because they got transformed into `:debug` messages HOT 2
- Phoenix.Ecto.CheckRepoStatus throws error in CLI if database "postgres" is not used HOT 9
- Navigation bar link showing un-decoded HTML entities title. HOT 1
- Problem with nested input with version 4.2.1 HOT 7
- String keys in form input helpers HOT 3
- Phoenix.Ecto.CheckRepoStatus.init/1 is undefined HOT 6
- Trying to upgrade phoenix and Liveview to latest versions, dependency error with phoenix_html HOT 3
- Distinguish queries made by phoenix_ecto HOT 9
- Ecto.Adapters.SQL.Sandbox times out in CI (GH Actions/Semaphore) HOT 3
- Phoenix.Ecto.SQL.Sandbox support for multi repos? HOT 2
- Tasks inside LiveView do not run in sandbox HOT 25
- `to_form` does not copy the `:action` field HOT 2
- New release? HOT 2
- Update version dependencies?
- Phoenix.Endpoint.SyncCodeReloadPlug issues CREATE TABLE even though repo is read-only HOT 5
- Empty errors with two level nested form using version 4.5.0 HOT 7
- CheckRepoStatus fails for missing database HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phoenix_ecto.