diff --git a/state.ts b/state.ts index f7629d1..40ff9ae 100644 --- a/state.ts +++ b/state.ts @@ -136,7 +136,8 @@ export const compileCode = async (activeId: number) => { state.compiling = false; toast.success('Compiled successfully!'); console.log(json) - } catch { + } catch (err) { + console.log(err) state.logs.push({ type: 'error', message: 'Error occured while compiling!' }) state.compiling = false; }