fix(Toolkit/Plugin): throw an Error instead of a string (#26618)

This commit is contained in:
Levente Balogh 2020-07-28 08:41:32 +02:00 committed by GitHub
parent 17605033a2
commit bdbea6d1f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ const packagePluginRunner: TaskRunner<PluginCIOptions> = async () => {
fs.exists(jobsDir, jobsDirExists => {
if (!jobsDirExists) {
throw 'You must run plugin:ci-build prior to running plugin:ci-package';
throw new Error('You must run plugin:ci-build prior to running plugin:ci-package');
}
});