Index: src/messages.js |
diff --git a/src/messages.js b/src/messages.js |
index 8ea31eaadb74d169c1afcd47f9f29b51a770b7da..cbbb70eb1a8e37392676cc8258cdfb17afacd89b 100644 |
--- a/src/messages.js |
+++ b/src/messages.js |
@@ -57,11 +57,13 @@ function FormatString(format, message) { |
for (var i = 0; i < format.length; i++) { |
var str = format[i]; |
for (arg_num = 0; arg_num < kReplacementMarkers.length; arg_num++) { |
- if (str !== kReplacementMarkers[arg_num]) continue; |
- try { |
- str = ToDetailString(args[arg_num]); |
- } catch (e) { |
- str = "#<error>"; |
+ if (str == kReplacementMarkers[arg_num]) { |
+ try { |
+ str = ToDetailString(args[arg_num]); |
+ } catch (e) { |
+ str = "#<error>"; |
+ } |
+ break; |
} |
} |
result += str; |