summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2015-06-05 22:18:04 -0400
committerTed Trask <ttrask01@yahoo.com>2015-06-05 22:18:04 -0400
commitc68b2a3e2ae4ac7d3d44da70bc9df215fedc946a (patch)
treea8fcec7c042e9fc63ebb4d04c571fb344b38e5d0
parentb492687fe825e8dcecf807c05a61af822acfc214 (diff)
downloadacf-provisioning-c68b2a3e2ae4ac7d3d44da70bc9df215fedc946a.tar.bz2
acf-provisioning-c68b2a3e2ae4ac7d3d44da70bc9df215fedc946a.tar.xz
Use cfe.print_errtxt to display the full errtxt if fail to set params when creating device from request
-rw-r--r--provisioning-model.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/provisioning-model.lua b/provisioning-model.lua
index 65fc87f..f4fb1a3 100644
--- a/provisioning-model.lua
+++ b/provisioning-model.lua
@@ -2153,7 +2153,7 @@ mymodule.create_from_request = function(self, request)
params = set_device_params(params)
end
if params.errtxt then
- request.errtxt = params.errtxt
+ request.errtxt = params:print_errtxt()
local req = mymodule.get_delete_device(self, {device_id = device.value.device_id.value})
mymodule.delete_device(self, req)
else