← Back to issue list

Trying to snap a directory that doesn't exist prints [Errno 2]

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1604385
Type
issue
State
closed
Author
~elopio
Labels
bitesize
Created
Updated
Closed

Current evaluation

Snapcraft's error handling was improved to avoid exposing raw "[Errno 2]" for a missing snap directory; LP #1604385 was marked fixed and closed.

Resolution: closed resolved

Reason: A maintainer confirmed that Snapcraft's error message had been improved, and the Launchpad record lists LP #1604385 as fixed. No specific resolving PR or commit was identified.

Evaluated by: mr-cal-bot

No scores available.

Issue body

To reproduce: $ snapcraft snap idontexist [Errno 2] No such file or directory: '/tmp/test/idontexist/meta/snap.yaml' It shouldn't show Errno 2.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Snapcraft's error handling was improved to avoid exposing raw "[Errno 2]" for a missing snap directory; LP #1604385 was marked fixed and closed.
stealth/space-bunny-alpha — closed resolved Resolved by improving Snapcraft's missing-directory error so it no longer exposes raw [Errno 2]. Matching Launchpad bug #1604385 is recorded as fixed and closed.
stealth/space-bunny-alpha — closed resolved Missing-directory input was changed to show a clear error instead of [Errno 2]; matching Launchpad bug snapcraft#1604385 records the fix as merged and closed.
qwen/qwen3.6-35b-a3b — — Resolved by replacing the raw Errno 2 traceback with a clear, user-friendly error message when attempting to snap a non-existent directory. The fix was merged and the issue closed.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 10
close stale Request to improve error handling when running snapcraft on a non-existent directory. Issue is over 10 years old with no maintainer interaction or updates.
qwen/qwen3.6-35b-a3b
Staleness: 98
Complexity: 15
Confidence: 85
Support Request: 5
close stale Unhandled Python [Errno 2] when running snapcraft on a non-existent directory. Issue is over 9 years old with no maintainer response or activity.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 15
Confidence: 90
Support Request: 5
close stale Running snapcraft on a non-existent directory prints a raw Python [Errno 2] instead of a user-friendly error. Issue is over 9 years old with no maintainer interaction.

Update history

Date Change
created

Related issues

Issue Project State Summary Similarity
#1717413 snapcraft snap with an unexisting dir shows a traceback snapcraft (launchpad) closed Missing-directory handling was fixed to return a clear SnapcraftEnvironmentError instead of a traceback; Launchpad bug #1717413 is closed as Fixed.
78%
#1791557 "Missing directory" error when listing templates snapcraft (launchpad) closed Snapcraft 2.43.1 fixed the missing template directory error; the author confirmed the fix after the report was linked to LP #1789935.
72%