mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-04 11:10:05 +00:00
13 lines
345 B
TypeScript
13 lines
345 B
TypeScript
export const parseSasViyaLog = (logResponse: { items: any[] }) => {
|
|
let log
|
|
try {
|
|
log = logResponse.items
|
|
? logResponse.items.map((i) => i.line).join('\n')
|
|
: JSON.stringify(logResponse)
|
|
} catch (e: any) {
|
|
console.error('An error has occurred while parsing the log response', e)
|
|
log = logResponse
|
|
}
|
|
return log
|
|
}
|