Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Commit

Permalink
fixup deletePassword to properly throw an error if service isn't a st…
Browse files Browse the repository at this point in the history
…ring (#270)
  • Loading branch information
John Kleinschmidt authored May 11, 2020
1 parent 7170f09 commit 60a0afc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ Napi::Value GetPassword(const Napi::CallbackInfo& info) {
Napi::Value DeletePassword(const Napi::CallbackInfo& info) {
Napi::Env env = info.Env();
if (!info[0].IsString()) {
Napi::TypeError::New(env, "Parameter 'service' must be a string");
Napi::TypeError::New(env, "Parameter 'service' must be a string").
ThrowAsJavaScriptException();
return env.Null();
}

Expand Down

0 comments on commit 60a0afc

Please sign in to comment.