[fix] Throw errors in sync mode