`return (-1);`

It's an error you can't recover from, right?