Use APIWarning type in error extraction code

Apparently I forgot to use it earlier, so extractAPIErrors was appending
strings to the multierror instead of instances of APIWarning.