Skip to content

Commit 68d1f42

Browse files
authored
Merge pull request javascript-tutorial#687 from javascript-tutorial/joaquinelio-patch-1
bug en ejemplo
2 parents d9bae25 + dc15fe4 commit 68d1f42

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

1-js/10-error-handling/1-try-catch/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ try {
324324
alert( user.name );
325325

326326
} catch (err) {
327-
alert( "Error en JSON: " + e.message ); // Error en JSON: dato incompleto: sin nombre
327+
alert( "Error en JSON: " + err.message ); // Error en JSON: dato incompleto: sin nombre
328328
}
329329
```
330330

0 commit comments

Comments
 (0)