fixed an error with prompt function

one argument was forgotten: `err, props` is working perfect now.