Trim space from end of libvips error messages

This commit is contained in:
Lovell Fuller
2023-03-24 09:58:21 +00:00
parent 0af070ed93
commit b55e58f31e
6 changed files with 16 additions and 4 deletions

View File

@@ -1234,7 +1234,7 @@ class PipelineWorker : public Napi::AsyncWorker {
Callback().MakeCallback(Receiver().Value(), { env.Null(), info });
}
} else {
Callback().MakeCallback(Receiver().Value(), { Napi::Error::New(env, baton->err).Value() });
Callback().MakeCallback(Receiver().Value(), { Napi::Error::New(env, sharp::TrimEnd(baton->err)).Value() });
}
// Delete baton