← 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

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6
Staleness: 98
Complexity: 10
Confidence: 95
Support Request: 0
close stale snapcraft snap displays a raw [Errno 2] traceback when targeting a non-existent directory instead of a clear error message. The issue is open, unassigned, inactive, and labeled bitesize.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1717413 snapcraft snap with an unexisting dir shows a traceback snapcraft (launchpad) closed Fixed by implementing proper error handling for missing directories. The Python traceback was replaced with a clear SnapcraftEnvironmentError, providing users with a concise message to verify the directory path before running snapcraft.
70%