Improve error message

pull/24/head
Juergen Hoetzel 2019-04-11 16:30:00 +02:00
parent 03da6e9132
commit 68ab22c5ba
No known key found for this signature in database
GPG Key ID: A3D9562A589874AB
1 changed files with 1 additions and 1 deletions

2
aur.py
View File

@ -129,7 +129,7 @@ def install_with_makepkg(module, package):
f = open_url('https://aur.archlinux.org/rpc/?v=5&type=info&arg={}'.format(package))
result = json.loads(f.read().decode('utf8'))
if result['resultcount'] != 1:
return (1, '', 'package not found')
return (1, '', 'package %s not found' % (package))
result = result['results'][0]
f = open_url('https://aur.archlinux.org/{}'.format(result['URLPath']))
current_path = os.getcwd()