Commits

Nate Coraor  committed 832538b

Properly handle error conditions in library_common.upload_dataset when uploading via the API.

  • Participants
  • Parent commits 62d5175

Comments (0)

Files changed (1)

File lib/galaxy/web/controllers/library_common.py

                         # created_outputs_dict can be a string only if cntrller == 'api'
                         if type( created_outputs_dict ) == str:
                             return 400, created_outputs_dict
+                        elif type( created_outputs_dict ) == tuple:
+                            return created_outputs_dict[0], created_outputs_dict[1]
                         return 200, created_outputs_dict
                     total_added = len( created_outputs_dict.keys() )
                     ldda_id_list = [ str( v.id ) for k, v in created_outputs_dict.items() ]