File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : crecto
2
- version : 0.12.0
2
+ version : 0.12.1
3
3
4
4
authors :
5
5
- Nick Franken <shnick@gmail.com>
6
6
7
7
license : MIT
8
8
9
+ crystal : " >= 1.0.0, < 2.0.0"
10
+
9
11
dependencies :
10
12
db :
11
13
github : crystal-lang/crystal-db
Original file line number Diff line number Diff line change @@ -542,7 +542,8 @@ module Crecto
542
542
543
543
{% for operation in %w[insert update delete] % }
544
544
private def run_operation (operation : Multi ::{{operation.camelcase.id}}, tx )
545
- {{operation.id}}(operation.instance, tx)
545
+ cs = {{operation.id}}(operation.instance, tx)
546
+ raise cs.errors.first[:message ] if ! cs.valid?
546
547
rescue ex : Exception
547
548
raise OperationError .new(ex, operation.instance.class, {{operation}})
548
549
end
Original file line number Diff line number Diff line change 1
1
module Crecto
2
- VERSION = " 0.12.0 "
2
+ VERSION = " 0.12.1 "
3
3
end
You can’t perform that action at this time.
0 commit comments