mirror of
https://github.com/lovell/sharp.git
synced 2026-02-06 06:36:17 +01:00
Improve thread-safety of error and warning message handling.
Ensures all message reading occurs before thread shutdown.
This commit is contained in:
@@ -244,7 +244,7 @@ Napi::Value _maxColourDistance(const Napi::CallbackInfo& info) {
|
||||
}
|
||||
// Calculate colour distance
|
||||
maxColourDistance = image1.dE00(image2).max();
|
||||
} catch (vips::VError const &err) {
|
||||
} catch (std::runtime_error const &err) {
|
||||
throw Napi::Error::New(env, err.what());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user