Skip to content

Commit 40d6f3e

Browse files
Merge pull request #59 from brettshollenberger/error-logger
Error logger
2 parents 1f49a31 + ca99378 commit 40d6f3e

19 files changed

+88
-772
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
easy_ml (0.2.0.pre.rc93)
4+
easy_ml (0.2.0.pre.rc94)
55
activerecord
66
activerecord-import (~> 1.8.1)
77
activesupport

app/controllers/easy_ml/predictions_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def create
4141
rescue ActiveRecord::RecordNotFound
4242
render json: { error: "Model not found" }, status: :not_found
4343
rescue => e
44-
render json: { error: e.message }, status: :unprocessable_entity
44+
EasyML::ErrorLogger.error(e)
45+
render json: { error: "Internal server error" }, status: 500
4546
end
4647
end
4748
end

easy_ml-0.2.0.pre.rc90.gem

-930 KB
Binary file not shown.

easy_ml-0.2.0.pre.rc91.gem

-930 KB
Binary file not shown.

easy_ml-0.2.0.pre.rc92.gem

-930 KB
Binary file not shown.

easy_ml-0.2.0.pre.rc93.gem

-930 KB
Binary file not shown.

easy_ml-0.2.0.pre.rc94.gem

931 KB
Binary file not shown.

instructions/bolt2rails.md

Lines changed: 0 additions & 361 deletions
This file was deleted.

0 commit comments

Comments
 (0)