Skip to content

Commit

Permalink
Revert compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
bgrgicak committed Feb 28, 2024
1 parent a3feb32 commit ef4993b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions packages/playground/blueprints/src/lib/compile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import type { SupportedPHPExtensionBundle } from '@php-wasm/universal';
import { FileReference, isFileReference, Resource } from './resources';
import { Step, StepDefinition } from './steps';
import * as allStepHandlers from './steps/handlers';
import { Blueprint } from './blueprint'
import { Blueprint } from './blueprint';

// @TODO: Configure this in the `wp-cli` step, not here.
const { wpCLI, ...otherStepHandlers } = allStepHandlers;
Expand Down Expand Up @@ -237,9 +237,12 @@ export function compileBlueprint(
onStepCompleted(result, step);
} catch (e) {
console.error(e);
throw new Error(`Error when executing the blueprint step #${i} (${JSON.stringify(
step
)}) ${e instanceof Error ? `: ${e.message}` : e}`);
throw new Error(
`Error when executing the blueprint step #${i} (${JSON.stringify(
step
)}) ${e instanceof Error ? `: ${e.message}` : e}`,
{ cause: e }
);
}
}
} finally {
Expand Down

0 comments on commit ef4993b

Please sign in to comment.