mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-09 05:20:05 +00:00
fix(job-execution): throw error if job name is empty
This commit is contained in:
@@ -136,6 +136,10 @@ export class WebJobExecutor extends BaseJobExecutor {
|
|||||||
folderPath = folderPathParts.join('/')
|
folderPath = folderPathParts.join('/')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!jobName) {
|
||||||
|
throw new Error('Job name is empty, null or undefined.')
|
||||||
|
}
|
||||||
|
|
||||||
const locJobs = await this.sasViyaApiClient.getJobsInFolder(folderPath)
|
const locJobs = await this.sasViyaApiClient.getJobsInFolder(folderPath)
|
||||||
if (locJobs) {
|
if (locJobs) {
|
||||||
const job = locJobs.find(
|
const job = locJobs.find(
|
||||||
|
|||||||
Reference in New Issue
Block a user