summaryrefslogtreecommitdiff
path: root/httemplate/REST/1.0
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-03-28 17:36:25 -0700
committerMark Wells <mark@freeside.biz>2016-03-28 17:36:54 -0700
commit6f30185e698e138885182b9c6e2b503fb46d1e28 (patch)
tree04465ccdec680f38aa75d68b917c95d637159e56 /httemplate/REST/1.0
parente002ba6d2f3c6f7dac37ea6fb4cc85d1af0c1e39 (diff)
slightly better error reporting for DID selector, from #39914
Diffstat (limited to 'httemplate/REST/1.0')
-rw-r--r--httemplate/REST/1.0/phone_avail3
1 files changed, 2 insertions, 1 deletions
diff --git a/httemplate/REST/1.0/phone_avail b/httemplate/REST/1.0/phone_avail
index ef9d3e7f0..c6638f48f 100644
--- a/httemplate/REST/1.0/phone_avail
+++ b/httemplate/REST/1.0/phone_avail
@@ -17,7 +17,8 @@ if ( scalar(@exports) > 1 ) {
die "no DID providing export attached to svcpart $svcpart";
}
my $export = $exports[0];
-
+
+# XXX no error handling
my $phonenums = $export->get_dids( map { $_ => scalar($cgi->param($_)) }
qw( ratecenter state areacode exchange )
);