<< Back to previous view

[CLJCLR-10] Errors when requiring a namespace do not contain useful stacktrace Created: 03/Mar/13  Updated: 12/Mar/13  Resolved: 12/Mar/13

Status: Resolved
Project: ClojureCLR
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Defect Priority: Minor
Reporter: Aaron Craelius Assignee: David Miller
Resolution: Completed Votes: 0
Labels: None


 Description   

When a namespace fails to load, a stack trace for just the require/load itself is shown - the actual cause is wrapped and hard to uncover. Putting a println statement in the catch clause of clojure.core/load-lib is one possible fix for this, but then two stack traces are displayed. Still, this may be worthwhile because debugging these errors can be a headache.



 Comments   
Comment by David Miller [ 12/Mar/13 11:33 PM ]

The changes to make the loading code throw exceptions rather than catch exceptions and return status codes ( https://github.com/clojure/clojure-clr/commit/e6febd45d53c983d696b83de62cf794be1d165aa ) should have made Exceptions during loading accessible further down the stack (i.e., the REPL).

Generated at Mon Nov 24 14:36:01 CST 2014 using JIRA 4.4#649-r158309.