Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

189
Vistas
How to get a raw error object on the try/catch instead of its stack

I'm trying to understand how I can get the raw object of the error in the try/catch block like so:

try {
  
} catch (error) {
  console.log(error);
}

The above is logging the stack instead of the raw object.

I'm asking this out of curiosity, because at first, I tried to print the message and not the stack and only by searching the web I could find this object has property of message.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

There is error.stack which show the stack of error in string

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda