Failureevent instead of reverting. You can find Compound's error codes here, and a brief history of why it's handled this way here.
utils/utils.tsfolder to help you with this.
Failureerror codes are reported. You can compare those error codes to those in the table below to learn why your transaction failed.
ErrorReporter.soland provided here for convenience.