modifies the registerWhoops method

Signed-off-by: Daniel Berry <daniel@danielberry.me>