Skip to content

Instantly share code, notes, and snippets.

View big-shadow's full-sized avatar
💀
O.G. Status

Ray Winkelman big-shadow

💀
O.G. Status
View GitHub Profile
@big-shadow
big-shadow / axios-catch-error.js
Created November 2, 2017 15:01 — forked from fgilio/axios-catch-error.js
Catch request errors with Axios
axios.put(this.apiBaseEndpoint + '/' + id, input)
.then((response) => {
// Success
})
.catch((error) => {
// Error
if (error.response) {
// The request was made and the server responded with a status code
// that falls out of the range of 2xx
// console.log(error.response.data);
@big-shadow
big-shadow / Get-VSSolutionReferences.ps1
Created February 16, 2016 20:16 — forked from jstangroome/Get-VSSolutionReferences.ps1
Get-VSSolutionReferences.ps1
#requires -version 2.0
[CmdletBinding()]
param (
[parameter(Mandatory=$true)]
[ValidateScript({ Test-Path -Path $_ -PathType Leaf })]
[string]
$Path
)
$ErrorActionPreference = 'Stop'