Merge pull request #132 from Vlamonster/patch-1

Return reason for failed request
This commit is contained in:
Martin Robertz 2024-08-30 15:40:13 +02:00 committed by GitHub
commit ec38f4ec2e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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] = {