From 29826bdcb67427d63e07bb507367d9cd44402750 Mon Sep 17 00:00:00 2001 From: Jason Dreyzehner Date: Thu, 23 Jan 2014 11:28:07 -0500 Subject: [PATCH] Update README.md --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 68a1a3e..3be1b77 100644 --- a/README.md +++ b/README.md @@ -29,11 +29,12 @@ Validating a Bitcoin address: var Address = require('bitcore/Address').class(); var addr = new Address("1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"); + try { addr.validate(); - console.log("Address is valid!"); + console.log("Address is valid."); } catch(e) { - console.log("Address is not valid.") + console.log(addr.data + " is not a valid address. " + e); } ```