mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 03:45:46 +00:00
Add line number information.
This commit is contained in:
parent
d26b72c348
commit
b27bb891d9
@ -65,7 +65,11 @@ public class EcmaError extends RuntimeException {
|
||||
* of the name of the error together with the message.
|
||||
*/
|
||||
public String toString() {
|
||||
return errorObject.toString();
|
||||
if (sourceName != null && lineNumber > 0)
|
||||
return errorObject.toString() + " (" + sourceName +
|
||||
"; line " + lineNumber + ")";
|
||||
else
|
||||
return errorObject.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -65,7 +65,11 @@ public class EcmaError extends RuntimeException {
|
||||
* of the name of the error together with the message.
|
||||
*/
|
||||
public String toString() {
|
||||
return errorObject.toString();
|
||||
if (sourceName != null && lineNumber > 0)
|
||||
return errorObject.toString() + " (" + sourceName +
|
||||
"; line " + lineNumber + ")";
|
||||
else
|
||||
return errorObject.toString();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user