mirror of
https://github.com/oven-sh/bun
synced 2026-02-02 15:08:46 +00:00
Add update message
This commit is contained in:
@@ -1,3 +1,16 @@
|
||||
import { Buffer } from "buffer";
|
||||
|
||||
globalThis.Buffer ||= Buffer;
|
||||
|
||||
if (!("URL" in globalThis)) {
|
||||
class Outdated extends Error {
|
||||
constructor(message) {
|
||||
super(message);
|
||||
this.name = "Outdated";
|
||||
}
|
||||
}
|
||||
|
||||
throw new Outdated(
|
||||
"Missing \"URL\", please run 'bun upgrade' to update to the latest version of Bun (added in v0.0.74)"
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user