Commit a878bcc9 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

function should return rejected promise instead of throwing error

parent f5076143
......@@ -355,7 +355,7 @@ CustomMap.prototype.refreshComments = function () {
return commentDbOverlay.clear();
throw new Error("comment DbOverlay not found");
return Promise.reject(new Error("comment DbOverlay not found"));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment