From d4d659a85191bbf8e7683c8840c716a96c09d85b Mon Sep 17 00:00:00 2001 From: vahid Date: Thu, 25 Oct 2018 13:23:18 -0700 Subject: [PATCH] Replace the hardcoded msg with the exception msg in the cloud send tool. --- tools/cloud/send.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/cloud/send.xml b/tools/cloud/send.xml index 966775ec71c..9c545c7e76f 100644 --- a/tools/cloud/send.xml +++ b/tools/cloud/send.xml @@ -12,7 +12,8 @@ #set $authz_record=$__app__.authnz_manager.try_get_authz_config($__app__.obj.model.context.current, int($__user_id__), $__app__.security.decode_id($authz_id.__str__())) #set $credentials_file = $__app__.authnz_manager.get_cloud_access_credentials_in_file($__app__.config.new_file_path, $authz_record, $__app__.obj.model.context.current, int($__user_id__)) #except - echo "Authentication or authorization failed." >&2 + #set $exc = $sys.exc_info()[1] + echo '$exc' >&2 #else python $__tool_directory__/send.py --provider=$authz_record.provider