Skip to content

Commit

Permalink
Merge pull request #132 from Vlamonster/patch-1
Browse files Browse the repository at this point in the history
Return reason for failed request
  • Loading branch information
Dream-Master authored Aug 30, 2024
2 parents 44251d8 + d177f12 commit ec38f4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ object NetworkControl {
def isComputing(context: Context, args: Arguments): Array[AnyRef] = result(isComputing)

@Callback(doc = "function():boolean -- Get whether the crafting request has failed.")
def hasFailed(context: Context, args: Arguments): Array[AnyRef] = result(failed)
def hasFailed(context: Context, args: Arguments): Array[AnyRef] = result(failed, reason)

@Callback(doc = "function():boolean -- Get whether the crafting request has been canceled.")
def isCanceled(context: Context, args: Arguments): Array[AnyRef] = {
Expand Down

0 comments on commit ec38f4e

Please sign in to comment.