Skip to content

Instantly share code, notes, and snippets.

@parisyup
Created June 3, 2024 08:34
Show Gist options
  • Save parisyup/fa5642911782603712ccf370e6c95c58 to your computer and use it in GitHub Desktop.
Save parisyup/fa5642911782603712ccf370e6c95c58 to your computer and use it in GitHub Desktop.
"Fail"
} catch (e:Exception) {
val exceptionMessage = e.message ?: "No exception message"
if (exceptionMessage.contains("Requires a single command.")) {
"Pass" }
else {
"Contract failed but with a different Exception: ${e.message}"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment