@enplug/scripts 1.11.4-dev47 → 1.11.4-dev48
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.
|
@@ -116,7 +116,7 @@ async function findCrowdinAppDirectoryId(credentials, crowdinPath, appName) {
|
|
|
116
116
|
const directory = resp.data.data.find(d => d.data.name === appName );
|
|
117
117
|
return directory ? directory.data.id : undefined;
|
|
118
118
|
} catch (err) {
|
|
119
|
-
if (
|
|
119
|
+
if (err.response.status === HTTP_UNAUTHORIZED_STATUS_CODE) {
|
|
120
120
|
console.error(`\n${chalk.red.bold('Provided Crowdin token is invalid')}`);
|
|
121
121
|
console.log(`Check the ${chalk.default.yellow('dev.private.json')} file.`);
|
|
122
122
|
throw new Error('Could not get Crowdin config');
|