← Back to issue list

Incorrect partition error message

View original Github issue

Metadata

Project
craft-parts
Number
#836
Type
issue
State
open
Author
mattculler
Labels
Created
2024-09-05 16:24:52+00:00
Updated
2025-03-11 14:28:35+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

### Bug Description Every `PartitionUsageError` tells the user that the partition names are incorrect, but this exception is used more generally than that. ### To Reproduce Trigger a `PartitionUsageError` using the part yaml below. ### part yaml ```shell parts: busybox: stage-packages: [busybox-static] plugin: nil organize: "*": (mattos-a)/ stage: - (mattos-a)/ prime: - (mattos-a)/ ``` ### Relevant log output ```shell 2024-09-05 12:08:34.729 craft_parts.errors.PartitionUsageError: Invalid usage of partitions 2024-09-05 12:08:34.729 parts.busybox.stage 2024-09-05 12:08:34.729 no path specified after partition in '(mattos-a)/' 2024-09-05 12:08:34.729 parts.busybox.prime 2024-09-05 12:08:34.729 no path specified after partition in '(mattos-a)/' 2024-09-05 12:08:34.729 Valid partitions: default, bios, mattos-boot, mattos-a, mattos-b, mattos-save, mattos-data 2024-09-05 12:08:34.729 Correct the invalid partition name(s) and try again. 2024-09-05 12:08:34.729 Recommended resolution: Correct the invalid partition name(s) and try again. ```

Evaluation history

No evaluation history available.