| @@ -27,8 +27,14 @@ | ||
| 27 | 27 | throw new MapperException(sprintf(__('Not enough permissions to %s record.', 'jc-importer'), 'import')); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | if (false === $this->allowed_method($permission_method)) { |
| 31 | + if ('create' === $permission_method) { | |
| 32 | + throw new MapperException(__('Not enough permissions to create record. No existing record matched the unique identifier, and Create is disabled. Enable Create, or check that the unique identifier can find the existing record.', 'jc-importer')); | |
| 33 | + } | |
| 34 | + if ('update' === $permission_method) { | |
| 35 | + throw new MapperException(__('Not enough permissions to update record. An existing record matched the unique identifier, and Update is disabled. Enable Update if you intended to modify existing records.', 'jc-importer')); | |
| 36 | + } | |
| 31 | 37 | throw new MapperException(sprintf(__('Not enough permissions to %s record.', 'jc-importer'), $permission_method)); |
| 32 | 38 | } |
| 33 | 39 | |
| 34 | 40 | $permission_data = $this->importer_model->getPermission($permission_method); |