File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,16 @@ export class ProjectService implements IProjectService {
35
35
var customAppPath = this . getCustomAppPath ( ) ;
36
36
if ( customAppPath ) {
37
37
customAppPath = path . resolve ( customAppPath ) ;
38
+ if ( ! this . $fs . exists ( customAppPath ) . wait ( ) ) {
39
+ this . $errors . failWithoutHelp ( `The specified path "${ customAppPath } " doesn't exist. Check that you specified the path correctly and try again.` ) ;
40
+ }
41
+
42
+ let customAppContents = this . $fs . enumerateFilesInDirectorySync ( customAppPath ) ;
43
+ if ( customAppContents . length === 0 ) {
44
+ this . $errors . failWithoutHelp ( `The specified path "${ customAppPath } " is empty directory.` ) ;
45
+ }
38
46
}
39
-
47
+
40
48
if ( this . $fs . exists ( projectDir ) . wait ( ) && ! this . $fs . isEmptyDir ( projectDir ) . wait ( ) ) {
41
49
this . $errors . fail ( "Path already exists and is not empty %s" , projectDir ) ;
42
50
}
You can’t perform that action at this time.
0 commit comments