Ignore:
Timestamp:
Jul 27, 2017 12:13:00 PM (7 years ago)
Author:
lewis
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
0615d54
Parents:
9d786e5
Message:

Raise DefaultReaderException? in NXcanSAS reader and handle correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/guiframe/local_perspectives/data_loader/data_loader.py

    r278ddee r8dec7e7  
    224224            except NoKnownLoaderException as e: 
    225225                logging.error(e.message) 
     226                error_message = "Loading data failed!\n" + e.message 
    226227                self.load_update(output=None, message=e.message, info="warning") 
    227228                self.load_complete(output=None, 
    228                                    message="Loading data failed!", 
    229                                    info="warning") 
     229                                   message=error_message, 
     230                                   info="error") 
    230231            except: 
    231232                logger.error(sys.exc_value) 
     
    268269        wx.PostEvent(self.parent, StatusEvent(status=message, info=info, 
    269270                                              type="stop")) 
    270         self.parent.add_data(data_list=output) 
     271        if output is not None: 
     272            self.parent.add_data(data_list=output) 
Note: See TracChangeset for help on using the changeset viewer.