From c257b6deb8f8989c0879c0af830ea247fc7c4790 Mon Sep 17 00:00:00 2001 From: lian Date: Wed, 2 Mar 2016 13:39:25 +0800 Subject: [PATCH] [api2] update err msg of owa api --- seahub/api2/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seahub/api2/views.py b/seahub/api2/views.py index 251076a638..716fa21a78 100644 --- a/seahub/api2/views.py +++ b/seahub/api2/views.py @@ -1846,7 +1846,7 @@ class OwaFileView(APIView): filename = os.path.basename(path) filetype, fileext = get_file_type_and_ext(filename) if fileext not in OFFICE_WEB_APP_FILE_EXTENSION: - error_msg = 'file extension invalid.' + error_msg = 'path invalid.' return api_error(status.HTTP_400_BAD_REQUEST, error_msg) # get wopi dict