[oden] Garbage assets, need to rewrite to IO
This commit is contained in:
parent
75fcc427ac
commit
17805fa4a6
17 changed files with 240 additions and 94 deletions
|
|
@ -308,7 +308,12 @@ impl ContextRef {
|
|||
pub(crate) fn exception_error(&self) -> Error {
|
||||
let exc = self.exception();
|
||||
let desc = exc.to_string(&self).unwrap_or_else(|_| String::new());
|
||||
Error::Exception(exc, desc)
|
||||
let stack = exc
|
||||
.get_property(&self, "stack")
|
||||
.and_then(|stack| stack.to_string(&self))
|
||||
.unwrap_or_else(|_| String::new());
|
||||
|
||||
Error::Exception(exc, desc, stack)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue