mirror of
https://github.com/sasjs/adapter.git
synced 2026-01-09 21:30:05 +00:00
13 lines
346 B
TypeScript
13 lines
346 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;
|
|
};
|