Skip to content

Commit 9dbdd6a

Browse files
committed
(#371) First test log
1 parent 717e41e commit 9dbdd6a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: lib/mouse.class.ts

+2
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ export class MouseClass {
3939
if (!isPoint(target)) {
4040
throw Error(`setPosition requires a Point, but received ${JSON.stringify(target)}`)
4141
}
42+
this.providerRegistry.getLogProvider().info('Setting mouse position', target);
4243
return new Promise<MouseClass>(async (resolve, reject) => {
4344
try {
4445
await this.providerRegistry.getMouse().setMousePosition(target);
4546
resolve(this);
4647
} catch (e) {
48+
this.providerRegistry.getLogProvider().error(e as Error);
4749
reject(e);
4850
}
4951
});

0 commit comments

Comments
 (0)