Fixed the incorrect way used to return error resonses in NBI.
This commit is contained in:
1 parent
b91bcb7442
commit
a02e3ecf17
3 files changed
+19
-15
No files matched your search
@@ -134,7 +134,7 @@ watchTask = (taskId, timeout, callback) ->
|
||||
if task
|
||||
timeout -= 500
|
||||
if timeout < 0
|
||||
callback('timeout')
|
||||
callback(new Error('Timeout'))
|
||||
else
|
||||
watchTask(taskId, timeout, callback)
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user