Add shitty error reporting to shitty code