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