From 5bb5a45705b7cc0ff58b3e175063c5908dfc0678 Mon Sep 17 00:00:00 2001 From: LV-426 Date: Mon, 18 May 2015 16:57:30 +0300 Subject: rz_api_backend.js: propagate xhr, text_status, err_thrown --- src/client/rz_api_backend.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/rz_api_backend.js b/src/client/rz_api_backend.js index 936fef11..4f44031e 100644 --- a/src/client/rz_api_backend.js +++ b/src/client/rz_api_backend.js @@ -24,7 +24,7 @@ define(['util', 'model/core'], function(util, model_core) { var err_msg = xhr.responseJSON && xhr.responseJSON.error; console.error('ajax error: status: \'' + text_status + '\' error-msg: ' + err_msg); if (on_error && typeof (on_error) === "function") { - on_error(err_msg); + on_error(xhr, text_status, err_thrown); } } -- cgit v1.3.1