Skip to content

Commit

Permalink
Rephrase error messages for platform folder checks (#611)
Browse files Browse the repository at this point in the history
#605 introduced new platform folder checks. Apparenly also introduced a
small error that got fixed in #607 but while testing this I figured the
error messages weren't clear + we were using some weird constructs like
"Ios"
  • Loading branch information
kmagiera authored Oct 11, 2024
1 parent 048b7f1 commit 858c56c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/vscode-extension/src/builders/buildAndroid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export async function buildAndroid(

if (!(await dependencyManager.isInstalled("android"))) {
throw new Error(
"Android directory does not exist, configure build source in launch configuration or use expo prebuild to generate the directory"
'"android" directory does not exist, configure build source in launch configuration or use expo prebuild to generate the directory'
);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -225,13 +225,13 @@ export function dependencyDescription(dependency: Dependency) {
};
case "ios":
return {
info: "Whether ios directory exists in the project",
error: "Ios directory does not exist in root directory",
info: 'Whether "ios" directory exists in the project',
error: '"ios" directory does not exist in the main application directory',
};
case "android":
return {
info: "Whether android directory exists in the project",
error: "Android directory does not exist in root directory",
info: 'Whether "android" directory exists in the project',
error: '"android" directory does not exist in the main application directory',
};
case "expo":
return {
Expand Down

0 comments on commit 858c56c

Please sign in to comment.