Moved errors to new file
Moved errors to new file