[fix] check for trailers to properly return an error and not continue deploy procedure