Drush: Better error message if no entities were found - instead of copy error

Created on 23 January 2024, 10 months ago
Updated 27 January 2024, 10 months ago

Problem/Motivation

Currently, a drush content:export produces the error

File 'temporary://export/zip/content-bulk-export-23_01_2024-11_36.zip' ('/tmp/export/zip/content-bulk-export-23_01_2024-11_36.zip') could not be copied because it does not exist.

Steps to reproduce

Run command on a fresh Drupal installation, before creating any content.

Proposed resolution

Show better error: "There are no matching entities to export."

Remaining tasks

Review the attached patch

User interface changes

None

API changes

None

Data model changes

None

πŸ› Bug report
Status

Needs review

Version

1.4

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany gogowitsch

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024