Bugfix non-existing error function for curl