INNER CODE UNIT · C
error_url
spheredev/neosphere · src/cell/build.c:362
error_url = strdup(jsal_get_string(-1));
if (jsal_get_prop_string(-3, "line"))
error_line = jsal_get_int(-1) + 1;
if (jsal_get_prop_string(-4, "column"))
error_column = jsal_get_int(-1) + 1;
jsal_pop(4);
}
visor_error(build->visor, "Cellscript crash due to uncaught exception");
visor_end_op(build->visor);
if (error_url != NULL && error_line > 0)
printf("\nCRASH: error at '%s':%d:%d\n", error_url, error_line, error_column);
else if (error_url != NULL)
printf("\nCRASH: error in '%s'\n", error_url);
else
printf("\nCRASH: uncaught JavaScript exception\n");
if (error_stack != NULL)
printf("%s\n", error_stack);
else