Return error status from compile functions