Improve UnknownPackageError message clarity (#5336)

* Improve UnknownPackageError message clarity

* Add IncompatiblePackageError for architecture-specific tool packages
This commit is contained in:
Jay Roy
2026-02-02 22:32:34 +05:30
committed by GitHub
parent 2fe3ed584f
commit 2cb48ffb9b
2 changed files with 12 additions and 5 deletions
+6 -3
View File
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from platformio import util
from platformio.exception import UserSideException
@@ -52,9 +51,13 @@ class MissingPackageManifestError(ManifestException):
class UnknownPackageError(PackageException):
MESSAGE = "Could not find the package with '{0}' requirements"
class IncompatiblePackageError(UnknownPackageError):
MESSAGE = (
"Could not find the package with '{0}' requirements for your system '%s'"
% util.get_systype()
"Could not find a version of the package with '{0}' requirements "
"compatible with the '{1}' system"
)