mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-13 16:52:58 -07:00
Improve exporter API error messages
This commit is contained in:
parent
0a60d5f2b2
commit
02d4a3b9fe
2 changed files with 22 additions and 23 deletions
|
@ -6524,10 +6524,10 @@ class WebInterface(object):
|
|||
include_images=helpers.bool_true(include_images),
|
||||
custom_fields=custom_fields).export()
|
||||
|
||||
if result:
|
||||
if result is True:
|
||||
return {'result': 'success', 'message': 'Metadata export has started.'}
|
||||
else:
|
||||
return {'result': 'error', 'message': 'Failed to export metadata.'}
|
||||
return {'result': 'error', 'message': result}
|
||||
|
||||
@cherrypy.expose
|
||||
@requireAuth(member_of("admin"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue