Refactor error message

This commit is contained in:
gparant 2020-04-04 17:56:43 +02:00
parent 53e1600e67
commit f04d1342b5
2 changed files with 7 additions and 7 deletions

View file

@ -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;