mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-07 12:30:06 +00:00
fix: improve error message when sasjs runner is not found
This commit is contained in:
@@ -691,7 +691,9 @@ const parseError = (data: string) => {
|
|||||||
const parts = data.split(/stored process not found: /i)
|
const parts = data.split(/stored process not found: /i)
|
||||||
if (parts.length > 1) {
|
if (parts.length > 1) {
|
||||||
const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0]
|
const storedProcessPath = parts[1].split('<i>')[1].split('</i>')[0]
|
||||||
const message = `Stored process not found: ${storedProcessPath}`
|
const message = storedProcessPath.endsWith('runner')
|
||||||
|
? `SASJS runner not found. Here's the link (https://cli.sasjs.io/auth/#sasjs-runner) to sas code for registering sasjs runner`
|
||||||
|
: `Stored process not found: ${storedProcessPath}`
|
||||||
return new JobExecutionError(500, message, '')
|
return new JobExecutionError(500, message, '')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user