Project

General

Profile

Revision ff3ed47d

Added by Adam Price almost 4 years ago

  • ID ff3ed47d7e97d862909adad3f7b6773a937f942a
  • Parent c4899dc3

fixes #17589 - display more descriptive message when unable to import

View differences:

lib/hammer_cli_import/base.rb
280 280
      if @pm[entity_type] && @pm[entity_type][entity_id]
281 281
        return @pm[entity_type][entity_id]
282 282
      end
283
      raise MissingObjectError, 'Unable to import, first import ' + to_singular(entity_type) + \
284
        ' with id ' + entity_id.inspect
283
      raise MissingObjectError, "Unable to import. Please import the #{to_singular(entity_type)} with id [ #{entity_id.inspect} ] then try again."
285 284
    end
286 285

  
287 286
    # this method returns a *first* found original_id

Also available in: Unified diff