Refactor error message
This commit is contained in:
parent
53e1600e67
commit
f04d1342b5
2 changed files with 7 additions and 7 deletions
|
@ -7,7 +7,7 @@ export class Point implements PointInterface{
|
|||
|
||||
constructor(x : number, y : number) {
|
||||
if(!x || !y){
|
||||
throw Error("x and y cannot be null");
|
||||
throw Error("position x and y cannot be null");
|
||||
}
|
||||
this.x = x;
|
||||
this.y = y;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue