Skip to content

Commit f0ef7e5

Browse files
committed
Update error messages in DailyExchangeRateRepository.
1 parent 55234f9 commit f0ef7e5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Repository/DailyExchangeRateRepository.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function convert(string $fromCurrency, string $toCurrency, CarbonInterfac
6868
->getQuery()
6969
->getSingleScalarResult();
7070
} catch (NoResultException|NonUniqueResultException) {
71-
throw new EntityNotFoundException("From currency ($fromCurrency) not found.");
71+
throw new EntityNotFoundException("From currency ($fromCurrency) not found for this $strDate date.");
7272
}
7373
} else {
7474
$fromAmount = 1;
@@ -92,7 +92,7 @@ public function convert(string $fromCurrency, string $toCurrency, CarbonInterfac
9292
->getQuery()
9393
->getSingleScalarResult();
9494
} catch (NoResultException|NonUniqueResultException) {
95-
throw new EntityNotFoundException("To currency ($toCurrency) not found.");
95+
throw new EntityNotFoundException("To currency ($toCurrency) not found for this $strDate date.");
9696
}
9797
} else {
9898
$toAmount = 1;

0 commit comments

Comments
 (0)