|
@@ -16,12 +16,12 @@ class Simplex extends Application
|
16
|
16
|
@include locate "api"
|
17
|
17
|
@include locate "docs"
|
18
|
18
|
|
19
|
|
- -- TODO intentionally cause an error to see if this is working as intended
|
20
|
19
|
handle_error: (err, trace) =>
|
21
|
20
|
if @original_request.route_name\find "api_"
|
22
|
|
- return status: 500, json: { errors: {err}, :trace } -- NOTE trace should be saved and NOT returned to the user
|
|
21
|
+ -- return status: 500, json: { errors: {err}, :trace } -- NOTE trace should be saved and NOT returned to the user
|
|
22
|
+ return status: 500, json: { errors: {err} }
|
23
|
23
|
else
|
24
|
|
- super!
|
|
24
|
+ super err --, trace
|
25
|
25
|
|
26
|
26
|
[index: "/"]: =>
|
27
|
27
|
@title = "Simplex Task Manager"
|