Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Commit

Permalink
feat(Runtime): Add a way to display internal-only errors/messages.
Browse files Browse the repository at this point in the history
This will allow, for example, pointing to documentation on GitHub externally and G3Docs (internally) without making the experience worse for one set of users - copying how we currently do it within the "angular_compiler" package.

PiperOrigin-RevId: 259822455
  • Loading branch information
matanlurey authored and alorenzen committed Jul 24, 2019
1 parent 9e4b13e commit 1f795eb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions angular/lib/src/runtime.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
/// rely on.
library angular.src.runtime;

import 'runtime/messages/messages.dart';

export 'runtime/check_binding.dart'
show
UnstableExpressionError,
Expand All @@ -14,3 +16,9 @@ export 'runtime/check_binding.dart'
debugThrowIfChanged;

export 'runtime/optimizations.dart' show isDevMode, unsafeCast;

/// Formatting service for displaying runtime text or error message bodies.
///
/// Internally, this may be implemented differently in order to display internal
/// only links, and likewise when exported to GitHub/Pub.
const runtimeMessages = Messages();
4 changes: 4 additions & 0 deletions angular/lib/src/runtime/messages/messages.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/// Base implementation of runtime message/error formatting.
class Messages {
const Messages();
}

0 comments on commit 1f795eb

Please sign in to comment.