@pmate/cli 0.24.22 → 0.24.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -10145,12 +10145,10 @@ var LoginCommandHandler = class {
|
|
|
10145
10145
|
return input.profiles[0].id;
|
|
10146
10146
|
}
|
|
10147
10147
|
if (!process.stdin.isTTY || !process.stdout.isTTY) {
|
|
10148
|
-
const
|
|
10149
|
-
|
|
10150
|
-
app
|
|
10151
|
-
|
|
10152
|
-
});
|
|
10153
|
-
return selected.id;
|
|
10148
|
+
const profileIds = input.profiles.map((profile) => profile.id).join(", ");
|
|
10149
|
+
throw new Error(
|
|
10150
|
+
`Multiple profiles found for app ${input.appId}. Run "pmate login --app ${input.appId} --profile-id <id>" with one of: ${profileIds}`
|
|
10151
|
+
);
|
|
10154
10152
|
}
|
|
10155
10153
|
ui.info(`Multiple profiles found for ${input.appId}. Select one:`);
|
|
10156
10154
|
input.profiles.forEach((profile, index) => {
|