Skip to content

Commit ea3d92f

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Fix undefined is not a function error.
Use spinner.message function instead spinner.update
1 parent 8d93603 commit ea3d92f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/services/doctor-service.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class DoctorService implements IDoctorService {
117117
"pod 'AFNetworking', '~> 1.0'\n"
118118
).wait();
119119

120-
spinner.update("Verifying CocoaPods. This may take some time, please be patient.");
120+
spinner.message("Verifying CocoaPods. This may take some time, please be patient.");
121121
spinner.start();
122122
let future = this.$childProcess.spawnFromEvent(
123123
this.$config.USE_POD_SANDBOX ? "sandbox-pod": "pod",
@@ -131,6 +131,7 @@ class DoctorService implements IDoctorService {
131131

132132
return !(this.$fs.exists(path.join(iosDir, "__PROJECT_NAME__.xcworkspace")).wait());
133133
} catch(err) {
134+
this.$logger.trace(`verifyCocoaPods error: ${err}`);
134135
return true;
135136
} finally {
136137
spinner.stop();

0 commit comments

Comments
 (0)