mirror of
https://github.com/sasjs/server.git
synced 2025-12-12 03:54:34 +00:00
fix(log): fixed parsing log for different runtime
This commit is contained in:
@@ -170,6 +170,7 @@ const useEditor = ({
|
|||||||
runTime: selectedRunTime
|
runTime: selectedRunTime
|
||||||
})
|
})
|
||||||
.then((res: any) => {
|
.then((res: any) => {
|
||||||
|
if (selectedRunTime === RunTimeType.SAS) {
|
||||||
const { errors, warnings, logLines } = parseErrorsAndWarnings(
|
const { errors, warnings, logLines } = parseErrorsAndWarnings(
|
||||||
res.data.split(SASJS_LOGS_SEPARATOR)[1]
|
res.data.split(SASJS_LOGS_SEPARATOR)[1]
|
||||||
)
|
)
|
||||||
@@ -180,8 +181,12 @@ const useEditor = ({
|
|||||||
warnings
|
warnings
|
||||||
}
|
}
|
||||||
|
|
||||||
setWebout(res.data.split(SASJS_LOGS_SEPARATOR)[0] ?? '')
|
|
||||||
setLog(log)
|
setLog(log)
|
||||||
|
} else {
|
||||||
|
setLog(res.data.split(SASJS_LOGS_SEPARATOR)[1] ?? '')
|
||||||
|
}
|
||||||
|
|
||||||
|
setWebout(res.data.split(SASJS_LOGS_SEPARATOR)[0] ?? '')
|
||||||
setTab('log')
|
setTab('log')
|
||||||
|
|
||||||
// Scroll to bottom of log
|
// Scroll to bottom of log
|
||||||
|
|||||||
Reference in New Issue
Block a user