From 18c01f144d706d95b91fb1e4d890be2a9e5db533 Mon Sep 17 00:00:00 2001 From: Igor Sfiligoi Date: Sat, 8 Sep 2012 20:33:26 +0000 Subject: Proper propagation of the error --- src/examples/rrdJFlotTwo.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/examples/rrdJFlotTwo.html') diff --git a/src/examples/rrdJFlotTwo.html b/src/examples/rrdJFlotTwo.html index cad36b0..c2bef5f 100644 --- a/src/examples/rrdJFlotTwo.html +++ b/src/examples/rrdJFlotTwo.html @@ -97,7 +97,7 @@ try { var i_rrd_data=new RRDFile(bf); } catch(err) { - alert("File "+fname1+" is not a valid RRD archive!"); + alert("File "+fname1+" is not a valid RRD archive!\n"+err); } if (i_rrd_data!=undefined) { rrd_data1=i_rrd_data; @@ -110,7 +110,7 @@ try { var i_rrd_data=new RRDFile(bf); } catch(err) { - alert("File "+fname2+" is not a valid RRD archive!"); + alert("File "+fname2+" is not a valid RRD archive!\n"+err); } if (i_rrd_data!=undefined) { rrd_data2=i_rrd_data; -- cgit v1.2.3-2-g168b