mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-04 19: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('/')
|
||||
}
|
||||
|
||||
if (!jobName) {
|
||||
throw new Error('Job name is empty, null or undefined.')
|
||||
}
|
||||
|
||||
const locJobs = await this.sasViyaApiClient.getJobsInFolder(folderPath)
|
||||
if (locJobs) {
|
||||
const job = locJobs.find(
|
||||
|
||||
Reference in New Issue
Block a user