Last active
October 7, 2019 06:24
-
-
Save zuzannamj/7697461b71f71685f99c864141161e6a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script runat="server"> | |
Platform.Load("Core","1.1.1"); | |
try{ | |
</script> | |
%%[ your AMPscript block goes here ]%% | |
<script runat="server"> | |
} | |
catch(e) { | |
Variable.SetValue("errorMessage", Stringify(e.message) + Stringify(e.description)); | |
} | |
</script> | |
<script runat="client"> | |
console.log(`%%=v(@errorMessage)=%%`); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment