mirror of
https://github.com/sasjs/adapter.git
synced 2025-12-11 01:14:36 +00:00
13 lines
340 B
TypeScript
13 lines
340 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) {
|
|
console.error('An error has occurred while parsing the log response', e)
|
|
log = logResponse
|
|
}
|
|
return log
|
|
}
|