added error handler for mozilla build main