Skip to content

Commit eda05b3

Browse files
authored
fix: throw proper error object instead of raw string (#670)
1 parent 81af089 commit eda05b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helios-ts/lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ export class HeliosProvider {
290290
return this.#client.unsubscribe(req.params[0]);
291291
}
292292
default: {
293-
throw `method not supported: ${req.method}`;
293+
throw new Error(`method not supported: ${req.method}`);
294294
}
295295
}
296296
}

0 commit comments

Comments
 (0)