You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
privateconststringMsgInstallUntrustedPackage="You are installing the modules from an untrusted repository. If you trust this repository, change its Trusted value by running the Set-PSResourceRepository cmdlet. Are you sure you want to install the PSresource from '{0}' ?";
varmessage=String.Format("{0} package could not be installed with error: Module manifest file: {1} does not exist. This is not a valid PowerShell module.",pkgIdentity.Id,moduleManifest);
// Throw here because no further processing can be done.
159
+
varexMessage=String.Format("The RequiredResourceFile must have either a '.json' or '.psd1' extension. Please try specifying a path to a valid .json or .psd1 file");
// Ran into errors parsing the .psd1 file which was found in Utils.TryParsePSDataFile() and written.
327
+
return;
328
+
}
329
+
}
276
330
}
277
331
catch(Exception)
278
332
{
279
-
varexMessage=String.Format("Argument for parameter -RequiredResourceFile is not in proper json format. Make sure argument is either a valid json file.");
333
+
varexMessage=String.Format("Argument for parameter -RequiredResourceFile is not in proper json or hashtable format. Make sure argument is either a valid .json or .psd1 file.");
0 commit comments