Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error handling #26

Open
naturallymitchell opened this issue Jan 12, 2019 · 2 comments
Open

error handling #26

naturallymitchell opened this issue Jan 12, 2019 · 2 comments

Comments

@naturallymitchell
Copy link
Member

for expected cases
instead of throwing stack trace

@naturallymitchell
Copy link
Member Author

permission denied currently goes:

2019-01-16 14:51:26 ERROR: 	failed to make directory '/usr/share/gut': Permission denied; class=Os (2)
stack traceback:
	[C]: in field 'clone'
	/usr/local/bin/machu-picchu/utils/fetch.lua:18: in function 'fetch'
	/usr/local/bin/machu-picchu/modules/install/install.lua:12: in function 'modules/install/install'
	/usr/local/bin/machu-picchu/modules/mod.lua:6: in function </usr/local/bin/machu-picchu/modules/mod.lua:6>
	/usr/local/bin/machu-picchu/init.lua:58: in local 'init_f'
	[string "?"]:15: in function <[string "?"]:11>
	[C]: in function 'xpcall'
	[string "?"]:11: in main chunk

here's debian's:

E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root?

@naturallymitchell
Copy link
Member Author

jazzdotdev/jazz#1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant