Skip to content

Commit 6ae60b8

Browse files
committed
k
1 parent 08ce93d commit 6ae60b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

signaturepad.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ var SignaturePad = (function (_super) {
3838
return this._android.getTransparentSignatureBitmap();
3939
}
4040
else {
41-
console.log("No drawing in the pad.");
41+
throw new Error("No drawing in the pad, add some logic to check for drawing before accessing.");
4242
}
4343
},
4444
enumerable: true,

signaturepad.android.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export class SignaturePad extends common.SignaturePad {
3030
if (!this._android.isEmpty()) {
3131
return this._android.getTransparentSignatureBitmap();
3232
} else {
33-
console.log("No drawing in the pad.");
33+
throw new Error("No drawing in the pad, add some logic to check for drawing before accessing.");
3434
}
3535
}
3636

0 commit comments

Comments
 (0)