Skip to content
This repository has been archived by the owner on Feb 1, 2023. It is now read-only.

Commit

Permalink
Merge pull request #4 from JamesIves/ask-if-not-found
Browse files Browse the repository at this point in the history
Wording
  • Loading branch information
JamesIves authored Dec 4, 2018
2 parents 03cecd8 + 636f3f2 commit f583704
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions functions/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ app.intent(
const timetable: any = await fetchTrainTimetable(station);

if (!timetable) {
conv.close('I was not able to find a station by that name.');
conv.close(
'I was not able to find a station by that name. Please double check the name you provided and try again.'
);
} else {
// Generates the neccersary table cells for display devices.
const timetableCells = timetable.predictions.map((item) => {
Expand Down Expand Up @@ -252,7 +254,7 @@ app.intent(
}
} else {
conv.close(
'I could not find a bus stop with that id. The stop id is located on the sign that the bus stops at.'
'I could not find a bus stop with that id. Please double checkthe number and try again, the stop id is located on the sign that the bus stops at.'
);
}
} else {
Expand Down

0 comments on commit f583704

Please sign in to comment.