Skip to content

Commit

Permalink
Translate ErrorDecoder (reactjs#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
halian-vilela authored and eduardomoroni committed Feb 9, 2019
1 parent 77dedaa commit 5a12e0f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions content/docs/error-decoder.md
@@ -1,9 +1,11 @@
---
id: error-decoder
title: Error Decoder
title: Decodificador de Erros
permalink: docs/error-decoder.html
---

In the minified production build of React, we avoid sending down full error messages in order to reduce the number of bytes sent over the wire.
Para reduzir o número de bytes enviados pela rede, nós evitamos enviar mensagens de erro completas na build minificada para produção do React.

We highly recommend using the development build locally when debugging your app since it tracks additional debug info and provides helpful warnings about potential problems in your apps, but if you encounter an exception while using the production build, this page will reassemble the original text of the error.
Recomendamos fortemente a utilização local da build de desenvolvimento para depurar seu aplicativo, uma vez que ela monitora informações
adicionais de depuração e disponibiliza avisos úteis sobre potenciais problemas nos seus aplicativos. No entanto, caso se depare com uma exceção
na build de produção, essa página irá remontar o texto original do erro.
6 changes: 3 additions & 3 deletions src/components/ErrorDecoder/ErrorDecoder.js
Expand Up @@ -69,16 +69,16 @@ function ErrorResult(props: {|code: ?string, msg: string|}) {
if (!code) {
return (
<p>
When you encounter an error, you'll receive a link to this page for that
specific error and we'll show you the full error text.
Quando você encontrar um erro, você receberá um link para essa página naquele
erro específico e lhe mostraremos o texto completo do erro.
</p>
);
}

return (
<div>
<p>
<b>The full text of the error you just encountered is:</b>
<b>O texto completo do erro que você encontrou é:</b>
</p>
<code>
<b>{urlify(errorMsg)}</b>
Expand Down

0 comments on commit 5a12e0f

Please sign in to comment.