Updated documentation - pass error in callback