Edit default response of serial.parseInt()?

Is there a way to edit the default time-out response for the Serial.parseInt() function? At current, it returns 0, which is a very possible value for my data - I would much prefer to have it return, say, -1, so that I can identify that something has gone wrong and act accordingly. I have changed things such as this in downloaded librarys, but since Serial/Stream is part of the IDE, I’m not sure where I should be looking/if it can be changed.

Thanks!

-Scott

Resolved on my own, tracked down the Stream.cpp file and made a new function with the modified timeout.