Unverified Commit fa7dd491 authored by Amir Ayupov's avatar Amir Ayupov Committed by GitHub
Browse files

[BOLT][NFC] Add BOLTError and return it from passes (1/2) (#81522)



As part of the effort to refactor old error handling code that
would directly call exit(1), in this patch we add a new class
BOLTError and auxiliary functions `createFatalBOLTError()` and
`createNonFatalBOLTError()` that allow BOLT code to bubble up the
problem to the caller by using the Error class as a return
type (or Expected). Also changes passes to use these.

Co-authored-by: default avatarRafael Auler <rafaelauler@fb.com>

Test Plan: NFC
parent a5f3d1a8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment