Skip to content

Commit

Permalink
Add in better error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
mrlambchop committed Jan 27, 2025
1 parent 9bb17f9 commit 64968a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/setup-tachyon.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ Welcome to the Particle Tachyon setup! This interactive command:
}

} catch (error) {
throw new Error(`Error setting up Tachyon: ${error.message}`);
throw new Error(`\nThere was an error setting up Tachyon:\n\n >> ${error.message}\n`);
}
}

Expand All @@ -184,7 +184,7 @@ Welcome to the Particle Tachyon setup! This interactive command:

return result;
} catch (err) {
throw new Error(`Step ${stepNumber} failed: ${err.message}`);
throw new Error(`Step ${stepNumber} failed with the following error: ${err.message}`);
}
}

Expand Down

0 comments on commit 64968a6

Please sign in to comment.