Converted deprecated error to a trap
Signed-off-by: Neil Levine <neil.levine@inktank.com>