easante (110) [Avatar] Offline
#1
In the listing the error variable names do not match. The code
if ( error) throw err

has to be
if ( error) throw error

err has to change to error
TheWexler (56) [Avatar] Offline
#2
Good catch. This is a typo. Thank you.