improve error message for missing scripts, fix #2824

This commit is contained in:
Maximilian Hils 2018-02-01 09:31:20 +01:00 committed by GitHub
parent 02d2ef7506
commit b57f1a86af
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ class Script:
self.last_load = 0
self.last_mtime = 0
if not os.path.isfile(self.fullpath):
raise exceptions.OptionsError("No such script: %s" % path)
raise exceptions.OptionsError('No such script: "%s"' % self.fullpath)
@property
def addons(self):