File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1123,9 +1123,8 @@ protected function _parseResponse($response)
1123
1123
throw new \Magento \Framework \Exception \LocalizedException ($ responseError );
1124
1124
}
1125
1125
$ this ->debugErrors ($ this ->_errors );
1126
-
1127
- return false ;
1128
1126
}
1127
+ $ result ->append ($ this ->getErrorMessage ());
1129
1128
}
1130
1129
1131
1130
return $ result ;
Original file line number Diff line number Diff line change @@ -501,7 +501,10 @@ protected function _getQuotes()
501
501
// make general request for all methods
502
502
$ response = $ this ->_doRatesRequest (self ::RATE_REQUEST_GENERAL );
503
503
$ preparedGeneral = $ this ->_prepareRateResponse ($ response );
504
- if (!$ preparedGeneral ->getError () || $ this ->_result ->getError () && $ preparedGeneral ->getError ()) {
504
+ if (!$ preparedGeneral ->getError ()
505
+ || $ this ->_result ->getError () && $ preparedGeneral ->getError ()
506
+ || empty ($ this ->_result ->getAllRates ())
507
+ ) {
505
508
$ this ->_result ->append ($ preparedGeneral );
506
509
}
507
510
You can’t perform that action at this time.
0 commit comments