Skip to content

Commit

Permalink
Improved error catching
Browse files Browse the repository at this point in the history
  • Loading branch information
magicbug committed Aug 11, 2019
1 parent 25cf65a commit 28782ec
Show file tree
Hide file tree
Showing 12 changed files with 33 additions and 8 deletions.
8 changes: 6 additions & 2 deletions OmniRig_VB_DEMO/Form1.vb
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,13 @@

Dim myString As String = "{""radio"": """ + RadioName + """, ""frequency"": """ + Rig.GetRxFrequency.ToString + """, ""mode"": """ + Label6.Text + """, ""key"": """ + My.Settings.CloudlogAPIKey + """}"

Dim responsebytes = client.UploadString(My.Settings.CloudlogURL + "/index.php/api/radio", myString)
Try
Dim responsebytes = client.UploadString(My.Settings.CloudlogURL + "/index.php/api/radio", myString)
ToolStripStatusLabel1.Text = "Cloudlog Synced: " + DateTime.UtcNow
Catch ex As Exception
ToolStripStatusLabel1.Text = "Cloudlog Synced: Failed, check URL/API"
End Try

ToolStripStatusLabel1.Text = "Cloudlog Synced: " + DateTime.UtcNow

End Using
Catch ex As System.Net.WebException
Expand Down
Binary file modified OmniRig_VB_DEMO/bin/Debug/CloudlogCAT.exe
Binary file not shown.
Binary file modified OmniRig_VB_DEMO/bin/Debug/CloudlogCAT.pdb
Binary file not shown.
6 changes: 3 additions & 3 deletions OmniRig_VB_DEMO/obj/Debug/CloudlogCAT.application
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xrml="urn:mpeg:mpeg21:2003:01-REL-R-NS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<assemblyIdentity name="CloudlogCAT.application" version="1.0.0.1" publicKeyToken="0000000000000000" language="en-GB" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<assemblyIdentity name="CloudlogCAT.application" version="1.0.0.2" publicKeyToken="0000000000000000" language="en-GB" processorArchitecture="msil" xmlns="urn:schemas-microsoft-com:asm.v1" />
<description asmv2:publisher="Magicbug" co.v1:suiteName="Cloudlog" asmv2:product="CloudlogCAT" asmv2:supportUrl="http://www.magicbug.co.uk/" xmlns="urn:schemas-microsoft-com:asm.v1" />
<deployment install="true" mapFileExtensions="true" co.v1:createDesktopShortcut="true" />
<compatibleFrameworks xmlns="urn:schemas-microsoft-com:clickonce.v2">
<framework targetVersion="4.5.2" profile="Full" supportedRuntime="4.0.30319" />
</compatibleFrameworks>
<dependency>
<dependentAssembly dependencyType="install" codebase="CloudlogCAT.exe.manifest" size="5068">
<assemblyIdentity name="CloudlogCAT.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="en-GB" processorArchitecture="msil" type="win32" />
<assemblyIdentity name="CloudlogCAT.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="en-GB" processorArchitecture="msil" type="win32" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>vUEL+hVfQYQ11+CKgLXHoJ5+4Es/QqBZ0YaJzAhEoEU=</dsig:DigestValue>
<dsig:DigestValue>WSaVrH5nBG8lISa6GGOvfl3kdPUqe3+JSJnmtUf9jlA=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified OmniRig_VB_DEMO/obj/Debug/CloudlogCAT.exe
Binary file not shown.
6 changes: 3 additions & 3 deletions OmniRig_VB_DEMO/obj/Debug/CloudlogCAT.exe.manifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<asmv1:assembly xsi:schemaLocation="urn:schemas-microsoft-com:asm.v1 assembly.adaptive.xsd" manifestVersion="1.0" xmlns:asmv1="urn:schemas-microsoft-com:asm.v1" xmlns="urn:schemas-microsoft-com:asm.v2" xmlns:asmv2="urn:schemas-microsoft-com:asm.v2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:co.v1="urn:schemas-microsoft-com:clickonce.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:co.v2="urn:schemas-microsoft-com:clickonce.v2">
<asmv1:assemblyIdentity name="CloudlogCAT.exe" version="1.0.0.1" publicKeyToken="0000000000000000" language="en-GB" processorArchitecture="msil" type="win32" />
<asmv1:assemblyIdentity name="CloudlogCAT.exe" version="1.0.0.2" publicKeyToken="0000000000000000" language="en-GB" processorArchitecture="msil" type="win32" />
<description asmv2:iconFile="black_cat.ico" xmlns="urn:schemas-microsoft-com:asm.v1" />
<application />
<entryPoint>
Expand Down Expand Up @@ -43,14 +43,14 @@
</dependentAssembly>
</dependency>
<dependency>
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="CloudlogCAT.exe" size="463840">
<dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="CloudlogCAT.exe" size="464352">
<assemblyIdentity name="CloudlogCAT" version="1.0.0.0" language="neutral" processorArchitecture="msil" />
<hash>
<dsig:Transforms>
<dsig:Transform Algorithm="urn:schemas-microsoft-com:HashTransforms.Identity" />
</dsig:Transforms>
<dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha256" />
<dsig:DigestValue>0ncNtX0peX4ElaBsgaKLLsnp1pchG6UtpW3uWn78ySg=</dsig:DigestValue>
<dsig:DigestValue>Ow9eUVWz3DhHeZcFSFYISqBPUd48IOhkux8ERXiRg7o=</dsig:DigestValue>
</hash>
</dependentAssembly>
</dependency>
Expand Down
Binary file modified OmniRig_VB_DEMO/obj/Debug/CloudlogCAT.pdb
Binary file not shown.
21 changes: 21 additions & 0 deletions OmniRig_VB_DEMO/obj/Debug/CloudlogCAT.vbproj.FileListAbsolute.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,24 @@ C:\Users\peter\Documents\development\CloudlogCAT\OmniRig_VB_DEMO\bin\Debug\Cloud
C:\Users\peter\Documents\development\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.TrustInfo.xml
C:\Users\peter\Documents\development\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.exe.manifest
C:\Users\peter\Documents\development\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.application
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.vbprojAssemblyReference.cache
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\Interop.OmniRig.dll
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.vbproj.ResolveComReference.cache
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.AboutBox1.resources
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.Form1.resources
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.CloudlogSettingsForm.resources
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.Resources.resources
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.vbproj.GenerateResource.cache
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.vbproj.CoreCompileInputs.cache
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.TrustInfo.xml
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.exe
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.xml
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.pdb
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\bin\Debug\CloudlogCAT.exe.config
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\bin\Debug\CloudlogCAT.exe.manifest
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\bin\Debug\CloudlogCAT.application
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\bin\Debug\CloudlogCAT.exe
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\bin\Debug\CloudlogCAT.pdb
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\bin\Debug\CloudlogCAT.xml
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.exe.manifest
C:\Users\peter\OneDrive\Documents\GitHub\CloudlogCAT\OmniRig_VB_DEMO\obj\Debug\CloudlogCAT.application
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified OmniRig_VB_DEMO/obj/Debug/Interop.OmniRig.dll
Binary file not shown.

0 comments on commit 28782ec

Please sign in to comment.