aboutsummaryrefslogtreecommitdiff
path: root/packages/taler-util/src/helpers.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/taler-util/src/helpers.ts')
-rw-r--r--packages/taler-util/src/helpers.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/taler-util/src/helpers.ts b/packages/taler-util/src/helpers.ts
index 95c6bf286..d4c3c86b5 100644
--- a/packages/taler-util/src/helpers.ts
+++ b/packages/taler-util/src/helpers.ts
@@ -123,17 +123,17 @@ export function notEmpty<T>(value: T | null | undefined): value is T {
}
/**
- * Safe function to stringify errors.
+ * Safe function to stringify errors.
*/
export function stringifyError(x: any): string {
if (typeof x === "undefined") {
return "<thrown undefined>";
}
if (x === null) {
- return `<thrown null>`;
+ return `<thrown null>`;
}
if (typeof x === "object") {
return x.toString();
}
return `<thrown ${typeof x}>`;
-} \ No newline at end of file
+}