Skip to content

Commit cc890a1

Browse files
committed
update menu navigation error text.
1 parent 78fefbf commit cc890a1

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

SerialPrograms/Source/PokemonSV/Programs/AutoStory/PokemonSV_MenuOption.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ int8_t MenuOption::get_selected_index(const ImageViewRGB32& screen) const {
7878
if (!m_arrow.detect(box, screen)){
7979
OperationFailedException::fire(
8080
ErrorReport::SEND_ERROR_REPORT,
81-
"MenuOption::get_selected_index(): Unable to find cursor.",
81+
"MenuOption::get_selected_index(): Unable to find cursor.\n"
82+
"We expect to be in the Options screen. Ensure you selected the correct Autostory start segment.",
8283
m_stream
8384
);
8485
}
@@ -127,7 +128,11 @@ std::string MenuOption::read_option(const ImageViewRGB32& cropped) const{
127128
return "fast";
128129
}
129130
}
130-
return "";
131+
OperationFailedException::fire(
132+
ErrorReport::SEND_ERROR_REPORT,
133+
"MenuOption::read_option(): Unable to read item. No results returned.",
134+
m_stream
135+
);
131136
}
132137

133138
if (results.size() > 1){

SerialPrograms/Source/PokemonSV/Programs/PokemonSV_MenuNavigation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ void enter_menu_from_overworld(const ProgramInfo& info, VideoStream& stream, Pro
546546
default:
547547
OperationFailedException::fire(
548548
ErrorReport::SEND_ERROR_REPORT,
549-
"enter_menu_from_overworld(): No recognized state after 30 seconds.",
549+
"enter_menu_from_overworld(): No recognized state after 30 seconds. Can't find overworld or main menu.",
550550
stream
551551
);
552552
}

0 commit comments

Comments
 (0)