split error and source