More informative errors
This commit is contained in:
@@ -71,7 +71,7 @@ export class DefaultCreateContract implements CreateContract {
|
||||
transfer
|
||||
});
|
||||
} else {
|
||||
throw new Error('Unable to write Contract Source.');
|
||||
throw new Error('Unable to write Contract Source.\n'+resource.statusText.msg);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -115,7 +115,7 @@ export class DefaultCreateContract implements CreateContract {
|
||||
if (response.status === 200 || response.status === 208) {
|
||||
return contractTX.id;
|
||||
} else {
|
||||
throw new Error('Unable to write Contract Initial State');
|
||||
throw new Error('Unable to write Contract Initial State\n'+resource.statusText.msg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user