{"action":"opened","issue":{"url":"https://api.github.com/repos/sphinx-doc/testing2/issues/241","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/241/labels{/name}","comments_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/241/comments","events_url":"https://api.github.com/repos/sphinx-doc/testing2/issues/241/events","html_url":"https://github.com/sphinx-doc/testing2/issues/241","id":53258972,"number":241,"title":"Improved error message needed: NoUri (latex builder)","user":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/sphinx-doc/testing2/labels/latex","name":"latex","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/1","labels_url":"https://api.github.com/repos/sphinx-doc/testing2/milestones/1/labels","id":919553,"number":1,"title":"some future version","description":null,"creator":{"login":"shimizukawa","id":151623,"avatar_url":"https://avatars.githubusercontent.com/u/151623?v=3","gravatar_id":"","url":"https://api.github.com/users/shimizukawa","html_url":"https://github.com/shimizukawa","followers_url":"https://api.github.com/users/shimizukawa/followers","following_url":"https://api.github.com/users/shimizukawa/following{/other_user}","gists_url":"https://api.github.com/users/shimizukawa/gists{/gist_id}","starred_url":"https://api.github.com/users/shimizukawa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shimizukawa/subscriptions","organizations_url":"https://api.github.com/users/shimizukawa/orgs","repos_url":"https://api.github.com/users/shimizukawa/repos","events_url":"https://api.github.com/users/shimizukawa/events{/privacy}","received_events_url":"https://api.github.com/users/shimizukawa/received_events","type":"User","site_admin":false},"open_issues":12,"closed_issues":15,"state":"open","created_at":"2015-01-02T11:45:33Z","updated_at":"2015-01-02T15:43:24Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-01-02T15:43:24Z","updated_at":"2015-01-02T15:43:24Z","closed_at":null,"body":"When the referenced document (in toctree) is missing from filesystem, Sphinx gives a following error. While the error is valid the message is not clear - I had to look into source code and print the document name in question (which is available) to find the rootcause. Thus, the error message could be improved.\n\n    \n     File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/cmdline.py\", line 172, in main\n        app.build(all_files, filenames)\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/application.py\", line 130, in build\n        self.builder.build_update()\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/builders/__init__.py\", line 260, in build_update\n        self.build(['__all__'], to_build)\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/builders/__init__.py\", line 320, in build\n        self.write(docnames, list(updated_docnames), method)\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/builders/latex.py\", line 96, in write\n        appendices=((docclass == 'manual') and\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/builders/latex.py\", line 153, in assemble_doctree\n        self.env.resolve_references(largetree, indexfile, self)\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/environment.py\", line 1350, in resolve_references\n        builder.app.emit('doctree-resolved', doctree, fromdocname)\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/application.py\", line 222, in emit\n        result.append(callback(self, *args))\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/ext/todo.py\", line 107, in process_todo_nodes\n        newnode['refuri'] = app.builder.get_relative_uri(\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/builders/latex.py\", line 57, in get_relative_uri\n        return self.get_target_uri(to, typ)\n      File \"/usr/lib/python2.4/site-packages/Sphinx-0.6.2-py2.4.egg/sphinx/builders/latex.py\", line 51, in get_target_uri\n        raise NoUri\n    NoUri\n    \n    \n\n\n----------------------------------------\n- Bitbucket: https://bitbucket.org/birkenfeld/sphinx/issue/241\n- Originally reported by: Juha Mustonen\n- Originally created at: 2009-08-17T12:46:16.013\n"}}