# HG changeset patch # User Matthew Wild # Date 1274618909 -3600 # Node ID 3de1d63ffdf71257a2bc318a9b1a2a031f78df68 # Parent 2c3d73c76d0f2c19b894e89776d0ed5175a6a631 Fix for error handling to handle string exceptions diff -r 2c3d73c76d0f -r 3de1d63ffdf7 lvm.js --- a/lvm.js Sun May 23 13:28:45 2010 +0100 +++ b/lvm.js Sun May 23 13:48:29 2010 +0100 @@ -440,6 +440,6 @@ catch(e) { print("Error: " + e); - if("stack" in e) + if(typeof(e) == "object" && "stack" in e) print(e.stack); }